[Lunar-commits] <moonbase> heimdal: Adding bad_flags to BUILD

Jason Johnston jason at jjfam.net
Thu Dec 2 18:13:55 CET 2010


commit b954fbb2e7afc3bb581da2cd99cbc406275c2850
Author: Jason Johnston <jason at jjfam.net>
Date:   Thu Dec 2 11:13:55 2010 -0600

    heimdal: Adding bad_flags to BUILD
    
    When -O1 and --as-needed are set together for the linker you get both -Wl,-O1,--as-needed and -Wl,--as-needed.  The --as-needed causes heimdal to fail linking.  Instead of adding 2 bad_flags to we just need a , in front  of --as-needed to fix it.
---
 crypto/heimdal/BUILD |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/crypto/heimdal/BUILD b/crypto/heimdal/BUILD
index d8ee024..867e54d 100644
--- a/crypto/heimdal/BUILD
+++ b/crypto/heimdal/BUILD
@@ -1,6 +1,14 @@
 (
   export CFLAGS="$CFLAGS -I/usr/include/et" &&
   export CXXFLAGS="$CXXFLAGS -I/usr/include/et" &&
+  
+
+# When -O1 and --as-needed are set together for the linker you get both
+#  -Wl,-O1,--as-needed and -Wl,--as-needed.  The --as-needed causes heimdal 
+# to fail linking.  Instead of adding 2 bad_flags to we just need a , in front 
+# of --as-needed to fix it.
+
+  bad_flags ",--as-needed" &&
 
   OPTS+=" --prefix=/usr \
           --without-x \


More information about the Lunar-commits mailing list