Fix a libcds bug:
[SXSI/XMLTree.git] / Makefile
index 1e054aa..feb8ae0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,10 @@
 INC_FLAGS=-I.. -I../libcds/includes/ -I.
 
+ifeq ($(POPCOUNT), 1)
+       POPCOUNT_FLAG=-DHAS_NATIVE_POPCOUNT -mpopcnt
+else
+       POPCOUNT_FLAG=
+endif
 
 ifeq ($(VERBOSE), true)
        HIDE=
@@ -10,7 +15,7 @@ endif
 ifeq ($(DEBUG), true)
        OPT_FLAGS=-O0 -g $(POPCOUNT_FLAG) -static
 else
-       OPT_FLAGS=-O3 $(POPCOUNT_FLAG) -static -flto
+       OPT_FLAGS=-O3 $(POPCOUNT_FLAG) -static
 endif
 
 ifeq ($(PROFILE), true)