[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]
[XaraXtreme-commits] Commit Complete
Commit by : luke
Repository : xara
Revision : 1644
Date : Wed Aug 2 15:44:50 BST 2006
Changed paths:
M /Trunk/XaraLX/configure.in
Build function level linking into static exec build
Diff:
Index: Trunk/XaraLX/configure.in
===================================================================
--- Trunk/XaraLX/configure.in (revision 1643)
+++ Trunk/XaraLX/configure.in (revision 1644)
@@ -315,8 +315,9 @@
fi
if test "$StaticEnable" = "yes"; then
- CPPFLAGS="$CPPFLAGS -static -static-libgcc"
- CXXFLAGS="$CXXFLAGS -static -static-libgcc"
+ CPPFLAGS="$CPPFLAGS -static -static-libgcc -ffunction-sections -fdata-sections"
+ CXXFLAGS="$CXXFLAGS -static -static-libgcc -ffunction-sections -fdata-sections"
+ LDFLAGS="--gc-sections"
# 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