mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-04 15:26:38 +08:00
fixes ccache compile and adds missing -lc
SVN-Revision: 32387
This commit is contained in:
parent
293c47218a
commit
75e9bbbcae
@ -87,7 +87,7 @@ endef
|
|||||||
define Build/Compile
|
define Build/Compile
|
||||||
CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
|
CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
|
||||||
CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
|
CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
|
||||||
LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS) $(LIBGCC_S) -lm" \
|
LDFLAGS="$(TARGET_LDFLAGS) -lc $(LIBGCC_S) -lm" \
|
||||||
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/$(MAKE_PATH)
|
$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/$(MAKE_PATH)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -1,14 +1,13 @@
|
|||||||
--- a/aconfigure.ac
|
--- a/aconfigure.ac
|
||||||
+++ b/aconfigure.ac
|
+++ b/aconfigure.ac
|
||||||
@@ -48,9 +48,9 @@ if test -z "$CROSS_COMPILE"; then
|
@@ -48,9 +48,8 @@ if test -z "$CROSS_COMPILE"; then
|
||||||
CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'`
|
CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
-if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi
|
-if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi
|
||||||
+AR="${CROSS_COMPILE}ar rv"
|
+AR="${AR} rv"
|
||||||
AC_SUBST(AR)
|
AC_SUBST(AR)
|
||||||
-if test "$LD" = ""; then LD="$CC"; fi
|
-if test "$LD" = ""; then LD="$CC"; fi
|
||||||
+LD="${CROSS_COMPILE}gcc"
|
|
||||||
AC_SUBST(LD)
|
AC_SUBST(LD)
|
||||||
if test "$LDOUT" = ""; then LDOUT="-o "; fi
|
if test "$LDOUT" = ""; then LDOUT="-o "; fi
|
||||||
AC_SUBST(LDOUT)
|
AC_SUBST(LDOUT)
|
||||||
|
Loading…
Reference in New Issue
Block a user