Branch: Tag:

2016-03-30

2016-03-30 14:32:01 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Build [Configure]: Strip arguments from REALCC et al.

Fixes compiler propagation to sub-configures when eg compiling
--with-abi.

639:      # Skip if user does not wish to use smartlink binary.   if test "x$force_smartlink_script_only" = "x"; then - # Strip smartlink from $CC - REALCC="`echo $CC|sed -e 's/.*smartlink //'`" + # Strip smartlink and arguments from $CC + REALCC="`echo $CC|sed -e 's/.*smartlink *//' -e 's/ .*//g'`"         # FIXME: Add proper tests
785:   CC="$SMARTLINK $REALCC"   pike_cv_prog_CC="$CC"    - # Strip smartlink from $CXX - REALCXX="`echo $CXX|sed -e 's/.*smartlink //'`" + # Strip smartlink and arguments from $CXX + REALCXX="`echo $CXX|sed -e 's/.*smartlink *//' -e 's/ .*//g'`"   CXX="$SMARTLINK $REALCXX"   pike_cv_prog_CXX="$CXX"   
796:   export CC CXX REALCC REALCXX SMARTLINK      AC_MSG_CHECKING([for a fallback compiler]) - # Strip smartlink from $FALLBACK_CC - FALLBACK_CC="`echo $FALLBACK_CC|sed -e 's/.*smartlink //'`" + # Strip smartlink and arguments from $FALLBACK_CC + FALLBACK_CC="`echo $FALLBACK_CC|sed -e 's/.*smartlink *//' -e 's/ .*//g'`"   if test "x$FALLBACK_CC" = "x"; then    AC_MSG_RESULT(no)   else
7999:      #############################################################################    - export LDFLAGS CFLAGS CPPFLAGS LIBS + export CC CPP LDFLAGS CFLAGS CPPFLAGS LIBS   export prefix exec_prefix OTHERFLAGS   export DEFINES INSTALL