Hi,
We have followed the following shell commands-

CFLAGS := -gdwarf-2
gunzip gzip-1.8.tar.gz && tar -xf gzip-1.8.tar
export CFLAGS
./configure --prefix=<some-dir>
make all
make install

These are the commands we have executed. Please find the attached output of 
'./configure'. Our build machine is (x86_64 SuSE10SP4)

Thanks
Sarthak

-----Original Message-----
From: meyer...@gmail.com [mailto:meyer...@gmail.com] On Behalf Of Jim Meyering
Sent: Saturday, March 11, 2017 9:09 AM
To: Sarthak Jain <sarthak.j...@microfocus.com>
Cc: 26...@debbugs.gnu.org
Subject: Re: bug#26016: Regarding how to link gzip

tags 26016 moreinfo
done

On Tue, Mar 7, 2017 at 4:07 AM, Sarthak Jain <sarthak.j...@microfocus.com> 
wrote:
> We are using gzip library in our product and I was upgrading the library to 
> the latest version 1.8. While building, we saw that is it using '/usr/bin/ld' 
> for linking. But on our build machine, we want to link it with 'gcc'.
> Is there any flag we need to pass while configuring to tell it to link using 
> 'gcc' instead of '/usr/bin/ld'.
>
> I tried to see in the configure script but I was not able to get one. Can you 
> please share some info on this?

We may be able to help, but only if you first tell us more about your problem:
  - what precise commands you ran (starting from the pristine unpacked
gzip-1.8 tarball)
  - what output they produced
  - describe your system, i.e., Fedora 25, Solaris 11, Debian unstable, etc.
checking for a BSD-compatible install... /usr/bin/ginstall -c
03:55:42 checking whether build environment is sane... yes
03:55:42 checking for a thread-safe mkdir -p... /bin/mkdir -p
03:55:42 checking for gawk... gawk
03:55:42 checking whether make sets $(MAKE)... yes
03:55:42 checking whether make supports nested variables... yes
03:55:42 checking whether make supports nested variables... (cached) yes
03:55:42 checking whether make supports the include directive... yes (GNU style)
03:55:42 checking for gcc... gcc
03:55:42 checking whether the C compiler works... yes
03:55:42 checking for C compiler default output file name... a.out
03:55:42 checking for suffix of executables... 
03:55:42 checking whether we are cross compiling... no
03:55:42 checking for suffix of object files... o
03:55:43 checking whether the compiler supports GNU C... yes
03:55:43 checking whether gcc accepts -g... yes
03:55:43 checking for gcc option to enable C11 features... -std=gnu11
03:55:43 checking whether gcc -std=gnu11 understands -c and -o together... yes
03:55:43 checking dependency style of gcc -std=gnu11... gcc3
03:55:43 checking how to run the C preprocessor... gcc -std=gnu11 -E
03:55:43 checking for grep that handles long lines and -e... /bin/grep
03:55:43 checking for nm... nm
03:55:43 checking whether ln -s works... yes
03:55:43 checking for ranlib... ranlib
03:55:43 checking for a POSIX-compliant shell... /bin/sh
03:55:43 checking for sys/types.h... yes
03:55:43 checking for sys/stat.h... yes
03:55:43 checking for strings.h... yes
03:55:43 checking for inttypes.h... yes
03:55:43 checking for stdint.h... yes
03:55:43 checking for unistd.h... yes
03:55:43 checking for sys/param.h... yes
03:55:43 checking for sys/socket.h... yes
03:55:43 checking for dirent.h... yes
03:55:43 checking for features.h... yes
03:55:43 checking for getopt.h... yes
03:55:43 checking for sys/time.h... yes
03:55:43 checking for math.h... yes
03:55:43 checking for sys/mman.h... yes
03:55:43 checking for wchar.h... yes
03:55:43 checking for utime.h... yes
03:55:43 checking for fcntl.h... yes
03:55:43 checking for limits.h... yes
03:55:43 checking for memory.h... yes
03:55:43 checking for time.h... yes
03:55:43 checking for minix/config.h... no
03:55:43 checking whether it is safe to define __EXTENSIONS__... yes
03:55:43 checking whether _XOPEN_SOURCE should be defined... no
03:55:44 checking for egrep... /bin/grep -E
03:55:44 checking for Minix Amsterdam compiler... no
03:55:44 checking for ar... ar
03:55:44 checking the archiver (ar) interface... ar
03:55:44 checking for ar... (cached) ar
03:55:44 checking for _LARGEFILE_SOURCE value needed for large files... no
03:55:44 checking build system type... x86_64-pc-linux-gnu
03:55:44 checking host system type... x86_64-pc-linux-gnu
03:55:44 checking for special C compiler options needed for large files... no
03:55:44 checking for _FILE_OFFSET_BITS value needed for large files... no
03:55:44 checking for size_t... yes
03:55:44 checking for working alloca.h... yes
03:55:44 checking for alloca... yes
03:55:44 checking whether malloc, realloc, calloc are POSIX compliant... yes
03:55:44 checking for _set_invalid_parameter_handler... no
03:55:44 checking for fchdir... yes
03:55:44 checking for fdopendir... yes
03:55:44 checking for strerror_r... yes
03:55:44 checking for fcntl... yes
03:55:44 checking for symlink... yes
03:55:44 checking for mempcpy... yes
03:55:44 checking for vasnprintf... no
03:55:44 checking for snprintf... yes
03:55:44 checking for fpurge... no
03:55:44 checking for __fpurge... yes
03:55:44 checking for __freading... yes
03:55:45 checking for __fseterr... no
03:55:45 checking for fstatat... yes
03:55:45 checking for fsync... yes
03:55:45 checking for getdtablesize... yes
03:55:45 checking for gettimeofday... yes
03:55:45 checking for nanotime... no
03:55:45 checking for lstat... yes
03:55:45 checking for mprotect... yes
03:55:45 checking for openat... yes
03:55:45 checking for __xpg_strerror_r... yes
03:55:45 checking for strdup... yes
03:55:45 checking for catgets... yes
03:55:45 checking for pipe... yes
03:55:45 checking for unlinkat... yes
03:55:45 checking for futimes... yes
03:55:45 checking for futimesat... yes
03:55:45 checking for futimens... no
03:55:45 checking for utimensat... no
03:55:45 checking for lutimes... no
03:55:45 checking for chown... yes
03:55:45 checking for fchmod... yes
03:55:45 checking for fchown... yes
03:55:45 checking for siginterrupt... yes
03:55:45 checking whether the preprocessor supports include_next... yes
03:55:45 checking whether system header files limit the line length... no
03:55:45 checking how gcc -std=gnu11 reports undeclared, standard C 
functions... error
03:55:45 checking whether // is distinct from /... no
03:55:45 checking for complete errno.h... yes
03:55:45 checking whether strerror_r is declared... yes
03:55:46 checking whether strerror_r returns char *... yes
03:55:46 checking whether fchdir is declared... yes
03:55:46 checking for working fcntl.h... yes
03:55:47 checking for pid_t... yes
03:55:47 checking for mode_t... yes
03:55:47 checking for promoted mode_t type... mode_t
03:55:47 checking whether fdatasync is declared... yes
03:55:47 checking for stdint.h... yes
03:55:47 checking for inttypes.h... yes
03:55:47 checking whether printf supports size specifiers as in C99... yes
03:55:47 checking whether printf supports 'long double' arguments... yes
03:55:47 checking whether printf supports infinite 'double' arguments... yes
03:55:47 checking whether byte ordering is bigendian... no
03:55:47 checking whether long double and double are the same... no
03:55:47 checking whether printf supports infinite 'long double' arguments... no
03:55:47 checking whether printf supports the 'a' and 'A' directives... no
03:55:47 checking whether printf supports the 'F' directive... yes
03:55:47 checking whether printf supports the 'n' directive... yes
03:55:47 checking whether printf supports the 'ls' directive... yes
03:55:48 checking whether printf supports POSIX/XSI format strings with 
positions... yes
03:55:48 checking whether printf supports the grouping flag... yes
03:55:48 checking whether printf supports the left-adjust flag correctly... yes
03:55:48 checking whether printf supports the zero flag correctly... yes
03:55:48 checking whether printf supports large precisions... yes
03:55:48 checking whether printf survives out-of-memory conditions... yes
03:55:48 checking for unsigned long long int... yes
03:55:48 checking for long long int... yes
03:55:48 checking for wchar_t... yes
03:55:48 checking for wint_t... yes
03:55:48 checking for intmax_t... yes
03:55:48 checking where to find the exponent in a 'double'... word 1 bit 20
03:55:48 checking whether snprintf returns a byte count as in C99... yes
03:55:48 checking for snprintf... (cached) yes
03:55:48 checking for strnlen... yes
03:55:48 checking for wcslen... yes
03:55:48 checking for wcsnlen... yes
03:55:48 checking for mbrtowc... yes
03:55:48 checking for wcrtomb... yes
03:55:48 checking whether _snprintf is declared... no
03:55:48 checking whether frexp() can be used without linking with libm... yes
03:55:48 checking whether alarm is declared... yes
03:55:48 checking whether stdin defaults to large file offsets... yes
03:55:48 checking whether fseeko is declared... yes
03:55:48 checking for fseeko... yes
03:55:49 checking whether fflush works on input streams... no
03:55:49 checking whether stat file-mode macros are broken... no
03:55:49 checking for nlink_t... yes
03:55:49 checking whether lstat correctly handles trailing slash... yes
03:55:49 checking whether ftello is declared... yes
03:55:49 checking for ftello... yes
03:55:49 checking whether ftello works... yes
03:55:49 checking whether getcwd (NULL, 0) allocates memory for result... yes
03:55:49 checking for getcwd with POSIX signature... yes
03:55:49 checking whether getdtablesize is declared... yes
03:55:49 checking for getopt.h... (cached) yes
03:55:49 checking for getopt_long_only... yes
03:55:49 checking whether getopt is POSIX compatible... yes
03:55:49 checking for working GNU getopt function... no
03:55:49 checking whether getenv is declared... yes
03:55:49 checking for C/C++ restrict keyword... __restrict
03:55:49 checking for struct timeval... yes
03:55:49 checking for wide-enough struct timeval.tv_sec member... yes
03:55:49 checking where to find the exponent in a 'float'... word 0 bit 23
03:55:49 checking for ld used by gcc -std=gnu11... /usr/bin/ld
03:55:49 checking if the linker (/usr/bin/ld) is GNU ld... yes
03:55:49 checking for shared library run path origin... done
03:55:49 checking whether imported symbols can be declared weak... yes
03:55:49 checking for pthread.h... yes
03:55:50 checking for multithread API to use... posix
03:55:50 checking for a sed that does not truncate output... /bin/sed
03:55:50 checking for mmap... yes
03:55:50 checking for MAP_ANONYMOUS... yes
03:55:50 checking whether memchr works... yes
03:55:50 checking whether memrchr is declared... yes
03:55:50 checking whether strerror(0) succeeds... yes
03:55:50 checking for strerror_r with POSIX signature... no
03:55:50 checking whether __xpg_strerror_r works... no
03:55:50 checking for nl_langinfo... yes
03:55:50 checking for ptrdiff_t... yes
03:55:50 checking whether C symbols are prefixed with underscore at the linker 
level... no
03:55:50 checking for stdbool.h that conforms to C99... yes
03:55:50 checking for _Bool... yes
03:55:50 checking whether stdint.h conforms to C99... yes
03:55:50 checking whether stdint.h predates C++11... no
03:55:50 checking whether strdup is declared... yes
03:55:50 checking for struct timespec in <time.h>... yes
03:55:50 checking whether the utimes function works... yes
03:55:50 checking for struct utimbuf... yes
03:55:50 checking whether <wchar.h> uses 'inline' correctly... yes
03:55:50 checking for alloca as a compiler built-in... yes
03:55:50 checking for GNU libc compatible calloc... yes
03:55:50 checking whether this system has an arbitrary file name length 
limit... yes
03:55:50 checking for library containing clock_gettime... -lrt
03:55:51 checking for clock_gettime... yes
03:55:51 checking for clock_settime... yes
03:55:51 checking for closedir... yes
03:55:51 checking for dirfd... yes
03:55:51 checking whether dirfd is declared... yes
03:55:51 checking whether dirfd is a macro... no
03:55:51 checking whether // is distinct from /... (cached) no
03:55:51 checking whether dup works... yes
03:55:51 checking whether dup2 works... yes
03:55:51 checking for error_at_line... yes
03:55:51 checking whether fflush works on input streams... (cached) no
03:55:51 checking whether fcntl handles F_DUPFD correctly... yes
03:55:51 checking whether fcntl understands F_DUPFD_CLOEXEC... no
03:55:51 checking for library containing fdatasync... none required
03:55:51 checking whether fdopendir is declared... yes
03:55:51 checking whether fdopendir works... yes
03:55:51 checking whether fflush works on input streams... (cached) no
03:55:51 checking whether conversion from 'int' to 'long double' works... yes
03:55:51 checking for nl_langinfo... (cached) yes
03:55:51 checking for ptrdiff_t... (cached) yes
03:55:51 checking whether fpurge is declared... no
03:55:51 checking whether frexp works... yes
03:55:51 checking whether frexpl is declared... yes
03:55:51 checking whether frexpl() can be used without linking with libm... yes
03:55:51 checking whether frexpl works... yes
03:55:51 checking for fseeko... (cached) yes
03:55:51 checking whether fflush works on input streams... (cached) no
03:55:51 checking for _fseeki64... no
03:55:51 checking whether fstatat (..., 0) works... yes
03:55:51 checking for ftello... (cached) yes
03:55:51 checking whether ftello works... (cached) yes
03:55:51 checking whether getdtablesize works... yes
03:55:51 checking whether gettimeofday clobbers localtime buffer... no
03:55:51 checking for gettimeofday with POSIX signature... almost
03:55:51 checking whether isnan(double) can be used without linking with 
libm... yes
03:55:52 checking whether isnan(float) can be used without linking with libm... 
yes
03:55:52 checking whether isnan(float) works... yes
03:55:52 checking whether isnan(long double) can be used without linking with 
libm... yes
03:55:52 checking whether isnanl works... yes
03:55:52 checking for C compiler flag to ignore unused libraries... 
-Wl,--as-needed
03:55:52 checking for pthread_rwlock_t... yes
03:55:52 checking whether lseek detects pipes... yes
03:55:52 checking for stdlib.h... yes
03:55:52 checking for GNU libc compatible malloc... yes
03:55:52 checking whether NAN macro works... yes
03:55:52 checking whether HUGE_VAL works... yes
03:55:52 checking for mempcpy... (cached) yes
03:55:52 checking for memrchr... yes
03:55:52 checking whether open recognizes a trailing slash... yes
03:55:52 checking for opendir... yes
03:55:52 checking whether frexp works... (cached) yes
03:55:52 checking whether ldexp can be used without linking with libm... yes
03:55:52 checking whether frexpl() can be used without linking with libm... 
(cached) yes
03:55:52 checking whether frexpl works... (cached) yes
03:55:52 checking whether frexpl is declared... (cached) yes
03:55:52 checking whether ldexpl() can be used without linking with libm... yes
03:55:52 checking whether ldexpl works... yes
03:55:52 checking whether ldexpl is declared... yes
03:55:52 checking for readdir... yes
03:55:52 checking for stdlib.h... (cached) yes
03:55:52 checking for GNU libc compatible realloc... yes
03:55:52 checking whether rmdir works... yes
03:55:52 checking for signbit macro... yes
03:55:53 checking for signbit compiler built-ins... yes
03:55:53 checking for stdint.h... (cached) yes
03:55:53 checking for SIZE_MAX... yes
03:55:53 checking for ssize_t... yes
03:55:53 checking whether stat handles trailing slashes on directories... yes
03:55:53 checking whether stat handles trailing slashes on files... yes
03:55:53 checking for struct stat.st_atim.tv_nsec... yes
03:55:53 checking whether struct stat.st_atim is of type struct timespec... yes
03:55:53 checking for struct stat.st_birthtimespec.tv_nsec... no
03:55:53 checking for struct stat.st_birthtimensec... no
03:55:53 checking for struct stat.st_birthtim.tv_nsec... no
03:55:53 checking for max_align_t... yes
03:55:53 checking whether NULL can be used in arbitrary expressions... yes
03:55:53 checking which flavor of printf attribute matches inttypes macros... 
system
03:55:53 checking for stpcpy... yes
03:55:53 checking for working strerror function... yes
03:55:53 checking for nlink_t... (cached) yes
03:55:53 checking whether unlink honors trailing slashes... yes
03:55:53 checking whether unlink of a parent directory fails as it should... 
guessing yes
03:55:53 checking whether futimesat handles NULL file... yes
03:55:53 checking for ptrdiff_t... (cached) yes
03:55:53 checking for nl_langinfo... (cached) yes
03:55:53 checking for ptrdiff_t... (cached) yes
03:55:53 checking for stdint.h... (cached) yes
03:55:53 checking for underline in external names... no
03:55:53 checking for an assembler syntax supported by this package... no
03:55:53 checking for library containing strerror... none required
03:55:53 checking for an ANSI C-conforming const... yes
03:55:53 checking for dirent.h that defines DIR... yes
03:55:53 checking for library containing opendir... none required
03:55:53 checking return type of signal handlers... void
03:55:53 checking for size_t... (cached) yes
03:55:53 checking for off_t... yes
03:55:53 checking that generated files are newer than configure... done
03:55:53 configure: creating ./config.status
03:55:53 config.status: creating Makefile
03:55:54 config.status: creating doc/Makefile
03:55:54 config.status: creating lib/Makefile
03:55:54 config.status: creating tests/Makefile
03:55:54 config.status: creating lib/config.h
03:55:54 config.status: executing depfiles commands

Reply via email to