aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixinc
diff options
context:
space:
mode:
authorGreg McGary <greg@mcgary.org>2000-08-30 22:57:10 +0000
committerGreg McGary <gkm@gcc.gnu.org>2000-08-30 22:57:10 +0000
commitb145ee27c77fcce0f4ddb7fcb09bb516fc6d499d (patch)
tree65e24038486af2fdd644cb3236c1089d9eb55ff0 /gcc/fixinc
parent2afaa41c5fdc34be0208be3148f8e83806899f21 (diff)
downloadgcc-b145ee27c77fcce0f4ddb7fcb09bb516fc6d499d.zip
gcc-b145ee27c77fcce0f4ddb7fcb09bb516fc6d499d.tar.gz
gcc-b145ee27c77fcce0f4ddb7fcb09bb516fc6d499d.tar.bz2
Makefile.in (fixinc.sh): Pass CC, CFLAGS and LDFLAGS to mkfixinc.sh
* Makefile.in (fixinc.sh): Pass CC, CFLAGS and LDFLAGS to mkfixinc.sh * fixinc/Makefile.in (fixincl): Pass $(LDFLAGS) to $(CC). * fixinc/mkfixinc.sh: Pass $CC, $CFLAGS and $LDFLAGS to $MAKE. From-SVN: r36077
Diffstat (limited to 'gcc/fixinc')
-rw-r--r--gcc/fixinc/Makefile.in2
-rwxr-xr-xgcc/fixinc/mkfixinc.sh9
2 files changed, 5 insertions, 6 deletions
diff --git a/gcc/fixinc/Makefile.in b/gcc/fixinc/Makefile.in
index 4ff13d2..e278b1f 100644
--- a/gcc/fixinc/Makefile.in
+++ b/gcc/fixinc/Makefile.in
@@ -73,7 +73,7 @@ all : $(TARGETS)
gen : fixincl.x
fixincl: $(OBJ) $(LIBERTY)
- $(CC) $(FIXINC_DEFS) -o $@ $(OBJ) $(LIBERTY)
+ $(CC) $(FIXINC_DEFS) $(LDFLAGS) -o $@ $(OBJ) $(LIBERTY)
$(OBJ) : $(HDR)
fixincl.o : fixincl.x fixincl.c
diff --git a/gcc/fixinc/mkfixinc.sh b/gcc/fixinc/mkfixinc.sh
index 058c163..0b2c629 100755
--- a/gcc/fixinc/mkfixinc.sh
+++ b/gcc/fixinc/mkfixinc.sh
@@ -111,9 +111,8 @@ then
fi
# OK. We gotta make the thing.
-#
-echo $MAKE SHELL=\"$SHELL\" install-bin
-
# make and install either the binary or the default script
-#
-$MAKE SHELL="$SHELL" install-bin
+
+cmd="$MAKE SHELL=\"$SHELL\" CC=\"$CC\" CFLAGS=\"$CFLAGS\" LDFLAGS=\"$LDFLAGS\" install-bin"
+echo $cmd
+eval $cmd