makefile.cfg: ensure CFLAGS are passed to libtool and ld
authorPatrick McCarty <patrick.mccarty@linux.intel.com>
Fri, 8 Feb 2013 19:05:33 +0000 (11:05 -0800)
committerPatrick McCarty <patrick.mccarty@linux.intel.com>
Fri, 8 Feb 2013 19:05:33 +0000 (11:05 -0800)
makefile.cfg

index f25e42e..174c271 100644 (file)
@@ -54,7 +54,7 @@ SYSDEPMEM= @MEMORYMGR@
 # miscellaneous OS-dependent stuff
 SHELL= /bin/sh
 # linker
-LN= @LN@
+LN= @LN@ $(CFLAGS)
 # file deletion command
 RM= rm -f
 # directory creation command
@@ -168,7 +168,7 @@ libjpeg.a: @A2K_DEPS@ $(LIBOBJECTS)
 
 # with libtool:
 libjpeg.la: @A2K_DEPS@ $(LIBOBJECTS)
-       $(LIBTOOL) --mode=link $(CC) -o libjpeg.la $(LIBOBJECTS) \
+       $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o libjpeg.la $(LIBOBJECTS) \
                -rpath $(libdir) -version-info $(JPEG_LIB_VERSION)
 
 # sample programs: