[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]
[XaraXtreme-commits] Commit Complete
Commit by : luke
Repository : xara
Revision : 1645
Date : Wed Aug 2 15:53:40 BST 2006
Changed paths:
M /Trunk/XaraLX/configure.in
Function level linking switched on for >=gcc-3.4 (same as pre-compile header)
Diff:
Index: Trunk/XaraLX/configure.in
===================================================================
--- Trunk/XaraLX/configure.in (revision 1644)
+++ Trunk/XaraLX/configure.in (revision 1645)
@@ -315,9 +315,13 @@
fi
if test "$StaticEnable" = "yes"; then
- CPPFLAGS="$CPPFLAGS -static -static-libgcc -ffunction-sections -fdata-sections"
- CXXFLAGS="$CXXFLAGS -static -static-libgcc -ffunction-sections -fdata-sections"
- LDFLAGS="--gc-sections"
+ CPPFLAGS="$CPPFLAGS -static -static-libgcc"
+ CXXFLAGS="$CXXFLAGS -static -static-libgcc"
+ if test PrecompileEnable == "yes"; then
+ CPPFLAGS+="-ffunction-sections -fdata-sections"
+ CXXFLAGS+="-ffunction-sections -fdata-sections"
+ LDFLAGS="--gc-sections"
+ fi
# Force as much as possible to be statically linked
WX_LIBS="`echo $WX_LIBS | sed -e 's/-lXrandr/-Wl,-Bstatic -lXrandr -Wl,-Bdynamic/g'`"
Xara