From 8283cfc3ff643a8aea52ecb261182c4d401ff90c Mon Sep 17 00:00:00 2001 From: Dmitry Babokin Date: Thu, 16 Oct 2014 20:17:02 +0400 Subject: [PATCH] Fixing comment in Makefile and adding tips for building binaries for distribution on Linux. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 990b5470..f0eebef5 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,7 @@ endif ARM_ENABLED=0 # Disable NVPTX by request -# To disable: make NVPTX_ENABLED=0 +# To enable: make NVPTX_ENABLED=1 NVPTX_ENABLED=0 # Add llvm bin to the path so any scripts run will go to the right llvm-config @@ -176,6 +176,10 @@ ifeq ($(ARCH_OS),Linux) # try to link everything statically under Linux (including libstdc++) so # that the binaries we generate will be portable across distributions... # LDFLAGS=-static + # Linking everything statically isn't easy (too many things are required), + # but linking libstdc++ and libgcc is necessary when building with relatively + # new gcc, when going to distribute to old systems. + LDFLAGS=-static-libgcc -static-libstdc++ endif LEX=flex