[llvm-commits] [llvm-gcc-4.2] r48553 - /llvm-gcc-4.2/trunk/gcc/Makefile.in
Bill Wendling
isanbard at gmail.com
Wed Mar 19 14:53:51 PDT 2008
Author: void
Date: Wed Mar 19 16:53:51 2008
New Revision: 48553
URL: http://llvm.org/viewvc/llvm-project?rev=48553&view=rev
Log:
Don't use Darwin-specific things (like kext64) in non-Darwin targets.
Patch suggested by Mike Stump!
Modified:
llvm-gcc-4.2/trunk/gcc/Makefile.in
Modified: llvm-gcc-4.2/trunk/gcc/Makefile.in
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/Makefile.in?rev=48553&r1=48552&r2=48553&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/Makefile.in (original)
+++ llvm-gcc-4.2/trunk/gcc/Makefile.in Wed Mar 19 16:53:51 2008
@@ -1649,6 +1649,12 @@
LIB2ADD = $(LIB2FUNCS_EXTRA)
LIB2ADD_ST = $(LIB2FUNCS_STATIC_EXTRA)
+# LLVM LOCAL begin libcc_kext
+ifeq ($target, *-*-darwin*)
+APPLE_EXTRA_MULTI := static;@static at fno-pic kext;@Dmalloc=kern_os_malloc at Dfree=kern_os_free at DLIBCC_KEXT@static at fno-pic@fno-exceptions at fno-non-call-exceptions$(KEXT_EXTRA_FLAGS) $(if $(findstring i686,$(target)),kext64;@mkernel at m64@Dmalloc=kern_os_malloc at Dfree=kern_os_free at DLIBCC_KEXT$(KEXT_EXTRA_FLAGS))
+endif
+# LLVM LOCAL end libcc_kext
+
libgcc.mk: config.status Makefile mklibgcc $(LIB2ADD) $(LIB2ADD_ST) specs \
xgcc$(exeext) stamp-as stamp-collect-ld stamp-nm
objext='$(objext)' \
@@ -1683,7 +1689,7 @@
D128PBIT='$(D128PBIT)' \
D128PBIT_FUNCS='$(D128PBIT_FUNCS)' \
APPLE_LOCAL='APPLE LOCAL libcc_kext' \
- MULTILIBS="`$(GCC_FOR_TARGET) --print-multi-lib` static;@static at fno-pic kext;@Dmalloc=kern_os_malloc at Dfree=kern_os_free at DLIBCC_KEXT@static at fno-pic@fno-exceptions at fno-non-call-exceptions$(KEXT_EXTRA_FLAGS) $(if $(findstring i686,$(target)),kext64;@mkernel at m64@Dmalloc=kern_os_malloc at Dfree=kern_os_free at DLIBCC_KEXT$(KEXT_EXTRA_FLAGS))" \
+ MULTILIBS="`$(GCC_FOR_TARGET) --print-multi-lib` $(APPLE_EXTRA_MULTI)"\
EXTRA_MULTILIB_PARTS='$(EXTRA_MULTILIB_PARTS)' \
SHLIB_LINK='$(SHLIB_LINK)' \
SHLIB_INSTALL='$(SHLIB_INSTALL)' \
More information about the llvm-commits
mailing list