I'm using this version of g++:

g++ (GCC) 3.3.5 (Debian 1:3.3.5-8ubuntu2)

And by applying this patch I can compile with optimized code:

HACL yumyum:~/playground/crypto++/dw$ darcs diff -u
diff -rN -u old-dw/c5/GNUmakefile new-dw/c5/GNUmakefile
--- old-dw/c5/GNUmakefile       2005-06-22 09:19:45.000000000 -0300
+++ new-dw/c5/GNUmakefile       2005-07-20 18:06:01.000000000 -0300
@@ -5,8 +5,7 @@
 # Make sure you run the validation tests and test your own program thoroughly
 # after turning on -O2. The GCC optimizer may have bugs that cause it to 
generate incorrect code.
 # Try removing -fdata-sections if you get "undefined external reference" 
errors.
-# CXXFLAGS = -O2 -DNDEBUG -ffunction-sections -fdata-sections
-# LDFLAGS = -Wl,--gc-sections
+CXXFLAGS = -O2 -DNDEBUG
 ARFLAGS = -cr  # ar needs the dash on OpenBSD
 RANLIB = ranlib
 UNAME = $(shell uname)

Reply via email to