Makefile does not hardcode link paths on Linux

Link statically for both x86 and x86-64
This commit is contained in:
Jean-Luc Duprat
2012-01-10 10:34:57 -08:00
parent 5d67252ed0
commit 0519eea951

View File

@@ -45,11 +45,7 @@ LDFLAGS=
ifeq ($(ARCH_OS),Linux)
# try to link everything statically under Linux (including libstdc++) so
# that the binaries we generate will be portable across distributions...
ifeq ($(ARCH_TYPE),x86_64)
LDFLAGS=-static -L/usr/lib/gcc/x86_64-linux-gnu/4.4
else
LDFLAGS=-L/usr/lib/gcc/i686-redhat-linux/4.6.0
endif
LDFLAGS=-static
endif
LEX=flex