fix plot build to use CC from Makefiles; fix fallout in Mac build
to clean up the hack of putting -m32 in CC instead of CFLAGS
This commit is contained in:
parent
69b858a7f5
commit
11f45cd2fd
17
src/configure
vendored
17
src/configure
vendored
|
@ -5321,19 +5321,16 @@ case $OS in
|
|||
fi
|
||||
fi
|
||||
|
||||
# Force 32-bit build, for now
|
||||
# Force 32-bit build unless mac64 is enabled:
|
||||
if test "${enable_mac64}" != "yes" ; then
|
||||
if test `${UNAME} -m` = "i386" ; then
|
||||
if test "${ORIG_CC}" = "" ; then
|
||||
CC="${CC} -m32"
|
||||
SUB_CONFIGURE_EXTRAS="${SUB_CONFIGURE_EXTRAS} CC="'"'"${CC}"'"'
|
||||
fi
|
||||
if test "${ORIG_CPP}" = "" ; then
|
||||
CPP="${CPP} -m32"
|
||||
SUB_CONFIGURE_EXTRAS="${SUB_CONFIGURE_EXTRAS} CPP="'"'"${CPP}"'"'
|
||||
fi
|
||||
if test "${ORIG_CC_FOR_BUILD}" = "" ; then
|
||||
CC_FOR_BUILD="${CC_FOR_BUILD} -m32"
|
||||
PREFLAGS="${PREFLAGS} -m32"
|
||||
CPPFLAGS="${CPPFLAGS} -m32"
|
||||
LDFLAGS="${LDFLAGS} -m32"
|
||||
# To make the libffi build work, we have to fold -m32 into CC
|
||||
# instead of CFLAGS:
|
||||
SUB_CONFIGURE_EXTRAS="${SUB_CONFIGURE_EXTRAS} CC="'"'"${CC}"' -m32"'
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -69,7 +69,7 @@ wx_mac_EXTRAFLAGS =
|
|||
EXTRAFLAGS = $(@WXVARIANT@_EXTRAFLAGS)
|
||||
|
||||
grmain.@LTO@: xsrc/grmain.c
|
||||
$(CC) $(EXTRAFLAGS) -DGC2_JUST_MACROS $(GCPREINC) -c $(POSTFLAGS) -o grmain.@LTO@ xsrc/grmain.c
|
||||
$(CC) $(CFLAGS) $(EXTRAFLAGS) -DGC2_JUST_MACROS $(GCPREINC) -c $(POSTFLAGS) -o grmain.@LTO@ xsrc/grmain.c
|
||||
|
||||
XSRCS = xsrc/grmain.c
|
||||
|
||||
|
|
|
@ -12,12 +12,7 @@ ICP=@ICP@
|
|||
|
||||
CC = @CC@
|
||||
|
||||
# Setting the compiler and linker when using dynext
|
||||
# seems like a good idea, but it doesn't work with
|
||||
# libtool as the compiler. So, we trust the configuration
|
||||
# that is built into dynext, instead.
|
||||
# WITH-ENV = env CC="$(CC)" LD="@MZLINKER@" ...
|
||||
WITH_ENV = env CFLAGS="@CFLAGS@ @COMPFLAGS@ @PREFLAGS@" LDFLAGS="@LDFLAGS@"
|
||||
WITH_ENV = env CC="@PLAIN_CC@" CFLAGS="@CFLAGS@ @COMPFLAGS@ @PREFLAGS@" LDFLAGS="@LDFLAGS@"
|
||||
|
||||
PLPLOT_SRCS = $(srcdir)/plplot/dc_drv.c \
|
||||
$(srcdir)/plplot/plcont.c \
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
# GC2OPTIONS - GC2-only flags
|
||||
#
|
||||
# Note: we use CPPFLAGS for configure-time testing only because
|
||||
# it needs to include C++ flags that we don't want for Racket.
|
||||
# it used to include C++ flags that we didn't want for Racket.
|
||||
# hence PREFLAGS, which is initialized to the original CPPFLAGS.
|
||||
|
||||
AC_INIT([Racket])
|
||||
|
@ -651,19 +651,16 @@ case $OS in
|
|||
fi
|
||||
fi
|
||||
|
||||
# Force 32-bit build, for now
|
||||
# Force 32-bit build unless mac64 is enabled:
|
||||
if test "${enable_mac64}" != "yes" ; then
|
||||
if test `${UNAME} -m` = "i386" ; then
|
||||
if test "${ORIG_CC}" = "" ; then
|
||||
CC="${CC} -m32"
|
||||
SUB_CONFIGURE_EXTRAS="${SUB_CONFIGURE_EXTRAS} CC="'"'"${CC}"'"'
|
||||
fi
|
||||
if test "${ORIG_CPP}" = "" ; then
|
||||
CPP="${CPP} -m32"
|
||||
SUB_CONFIGURE_EXTRAS="${SUB_CONFIGURE_EXTRAS} CPP="'"'"${CPP}"'"'
|
||||
fi
|
||||
if test "${ORIG_CC_FOR_BUILD}" = "" ; then
|
||||
CC_FOR_BUILD="${CC_FOR_BUILD} -m32"
|
||||
PREFLAGS="${PREFLAGS} -m32"
|
||||
CPPFLAGS="${CPPFLAGS} -m32"
|
||||
LDFLAGS="${LDFLAGS} -m32"
|
||||
# To make the libffi build work, we have to fold -m32 into CC
|
||||
# instead of CFLAGS:
|
||||
SUB_CONFIGURE_EXTRAS="${SUB_CONFIGURE_EXTRAS} CC="'"'"${CC}"' -m32"'
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -434,7 +434,7 @@ CURSES= -lcurses -ltermlib
|
|||
# the SHELL environment variable.
|
||||
SHELL= /bin/sh
|
||||
|
||||
SPECIALCFLAGS = -I$(srcdir)/include -I$(AO_INSTALL_DIR)/include
|
||||
SPECIALCFLAGS = -I$(srcdir)/include -I$(AO_INSTALL_DIR)/include @CFLAGS@ @COMPFLAGS@ @PREFLAGS@
|
||||
# Alternative flags to the C compiler for mach_dep.c.
|
||||
# Mach_dep.c often doesn't like optimization, and it's
|
||||
# not time-critical anyway.
|
||||
|
|
Loading…
Reference in New Issue
Block a user