emulators/simh-hp2100: fix the build with LLVM 11
This patch adds -fcommon to the build flags to fix the build with LLVM 11, which now defaults to -fno-common. PR: 248871 MFH: 2020Q3 (-fno-common build fix)
This commit is contained in:
parent
e4c0edb958
commit
a294961e05
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=546863
17
emulators/simh-hp2100/files/patch-SCP_makefile
Normal file
17
emulators/simh-hp2100/files/patch-SCP_makefile
Normal file
@ -0,0 +1,17 @@
|
||||
--- SCP/makefile.orig 2020-08-23 21:51:23 UTC
|
||||
+++ SCP/makefile
|
||||
@@ -532,10 +532,12 @@ ifneq ($(DONT_USE_READER_THREAD),)
|
||||
endif
|
||||
|
||||
|
||||
-# Shut up annoying clang default warnings.
|
||||
+# Shut up annoying clang default warnings, and also fix
|
||||
+# multiply defined symbols on clang 11 and above
|
||||
|
||||
-ifeq ($(GCC),clang)
|
||||
+ifeq ($(findstring clang,$(COMPILER_NAME)),clang)
|
||||
OS_CCDEFS += -Wno-parentheses -Wno-bitwise-op-parentheses -Wno-dangling-else
|
||||
+ CFLAGS_O += -fcommon
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user