From 63787d9d82e1a56814f07c519ab9c1477ca57752 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Tue, 15 Jan 2008 16:30:23 +0000 Subject: Put LDFLAGS environment variable value in link of build tools git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@560 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- Makefile.config.in | 1 + buildtools/Makefile | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile.config.in b/Makefile.config.in index 1f7a44cb..66589856 100644 --- a/Makefile.config.in +++ b/Makefile.config.in @@ -97,6 +97,7 @@ HAVE_INT64 = Y CC_FOR_BUILD = $(CC) LD_FOR_BUILD = $(LD) CFLAGS_FOR_BUILD = $(CFLAGS) +LDFLAGS_FOR_BUILD = $(LDFLAGS) # MAKE is set automatically by Make to what was used to invoke Make. diff --git a/buildtools/Makefile b/buildtools/Makefile index 8ea61abe..166093ea 100644 --- a/buildtools/Makefile +++ b/buildtools/Makefile @@ -28,16 +28,16 @@ EXPLICIT=-DEXPLICIT endif libopt.o: libopt.c - $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) \ + $(CC_FOR_BUILD) -c -o $@ $(CFLAGS_FOR_BUILD) \ -DSHLIBPREFIXLIST="\"$(SHLIBPREFIXLIST)\"" \ $(STRIP_DLL_VERSION) $(EXPLICIT) $(CFLAGS_PERSONAL) $(CADD) \ - -o $@ $< + $< typegen.o endiangen.o:%.o:%.c - $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) -o $@ $< + $(CC_FOR_BUILD) -c -o $@ $(CFLAGS_FOR_BUILD) $< $(PROGS):%:%.o - $(LD_FOR_BUILD) -o $@ $< + $(LD_FOR_BUILD) -o $@ $(LDFLAGS_FOR_BUILD) $< distclean clean: cleanlocal .PHONY: cleanlocal -- cgit 1.4.1