Skip to content

Instantly share code, notes, and snippets.

@ackdav
Created January 25, 2021 09:43
Show Gist options
  • Save ackdav/87021385a097747f5b6763b8825e2612 to your computer and use it in GitHub Desktop.
Save ackdav/87021385a097747f5b6763b8825e2612 to your computer and use it in GitHub Desktop.
Fix to compile llvm_mode under ubuntu 18.04
--- Makefile 2021-01-17 11:40:03.780036900 +0000
+++ MakefileNew 2021-01-17 11:40:25.664199205 +0000
@@ -36,7 +36,8 @@
CXXFLAGS += -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign \
-DVERSION=\"$(VERSION)\" -Wno-variadic-macros
-CLANG_CFL = `$(LLVM_CONFIG) --cxxflags` -fno-rtti -fpic $(CXXFLAGS)
+#CLANG_CFL = `$(LLVM_CONFIG) --cxxflags` -fno-rtti -fpic $(CXXFLAGS)
+CLANG_CFL = `$(LLVM_CONFIG) --cxxflags` -Wl,-znodelete -fno-rtti -fpic $(CXXFLAGS)
CLANG_LFL = `$(LLVM_CONFIG) --ldflags` $(LDFLAGS)
# User teor2345 reports that this is required to make things work on MacOS X.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment