Commits

David McClosky committed 7747104

second-stage/programs/wlle: Put libraries at the end
Hopefully, this will fix cvlm-lbfgs compilation problems on Ubuntu.
Also reorganized some of the flags in the file.

  • Participants
  • Parent commits 456e8b8

Comments (0)

Files changed (1)

File second-stage/programs/wlle/Makefile

 	$(CXX) $(LDFLAGS) $^ -o cvlm-owlqn
 
 cvlm-lbfgs: cvlm-lbfgs.o liblmdata.a cobyla.o
-	$(CXX) $(LDFLAGS) -L/usr/local/lib -llbfgs $^ -o cvlm-lbfgs
+	$(CXX) $(LDFLAGS) $^ -L/usr/local/lib -llbfgs -o cvlm-lbfgs
 
 hlm: hlm.o OWLQN.o TerminationCriterion.o liblmdata.a
 	$(CXX) $(LDFLAGS) $^ -o $@
 liblmdata.a: lmdata.o
 	ar rcv liblmdata.a lmdata.o; ranlib liblmdata.a
 
-# Compilation help: you may need to remove -march=native on older compilers.
-GCCFLAGS=-march=native -mfpmath=sse -msse2 -mmmx
-
 CC=gcc
 
 # fast options
+# Compilation help: you may need to remove -march=native on older compilers.
+GCCFLAGS=-march=native -mfpmath=sse -msse2 -mmmx
 FOPENMP=-fopenmp
 CFLAGS=-MMD -O6 -ffast-math -fstrict-aliasing -Wall -finline-functions $(GCCFLAGS) $(FOPENMP)
 LDFLAGS=$(FOPENMP)
 CXXFLAGS=${CFLAGS} -Wno-deprecated
 
 # debugging options
+# GCCFLAGS=
 # FOPENMP=
 # CFLAGS=-MMD -O0 -g $(GCCFLAGS) $(FOPENMP)
 # LDFLAGS=-g $(FOPENMP)