Fellow developers:
To get the "./configured" packages to be compiled with the same compiler and compile flags as the rest of afni, I've modified Makefile.INCLUDE with 3 changes. The patch between the original and the new version is shown at the end of this message.
Regards,
Hans J. Johnson
hans-johnson@uiowa.edu
--- afni_src/Makefile.INCLUDE 2004-02-25 08:02:52.000000000 -0600
+++ afni-patches/Makefile.INCLUDE 2004-02-27 12:57:25.000000000 -0600
@@ -1516,7 +1516,7 @@
CXX="" ; export CXX ; CC="${CCMIN}";export CC; \
$(RM) config.cache config.log config.status ; \
chmod ugo+x ./configure ; \
- ./configure ; $(MAKE) libsrc/all ; \
+ CC="$(CC)" CFLAGS="$(IFLAGS)" LDFLAGS="$(LFLAGS)" ./configure ; $(MAKE) libsrc/all ; \
$(CP) libsrc/netcdf.h ../.. ; \
$(MV) libsrc/attr.o ../../netcdf_attr.o ; \
$(MV) libsrc/dim.o ../../netcdf_dim.o ; \
@@ -1554,7 +1554,7 @@
mpegtoppm:
( cd mpegtoppm_dir ; chmod ugo+x ./configure ; \
- ./configure --disable-sdl --disable-mlib --without-x --disable-dependency-tracking ; \
+ CC="$(CC)" CFLAGS="$(IFLAGS)" LDFLAGS="$(LFLAGS)" ./configure --disable-sdl --disable-mlib --without-x --disable-dependency-tracking ; \
$(MAKE) ; mv doc/sample2 ../mpegtoppm ; $(MAKE) clean ; )
#######
@@ -1564,7 +1564,7 @@
cjpeg:
( cd jpeg-6b ; $(RM) Makefile jconfig.h ; \
- chmod ugo+x ./configure ; ./configure ; \
+ chmod ugo+x ./configure ; CC="$(CC)" CFLAGS="$(IFLAGS)" LDFLAGS="$(LFLAGS)" ./configure ; \
$(MAKE) ; strip cjpeg djpeg ; $(MV) cjpeg djpeg .. ; \
$(MAKE) clean ; $(RM) Makefile jconfig.h )