1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00

Unbreak the build against Clang 7 and above by removing offending flag

and macro definition (-fgnu-runtime and -DGNU_RUNTIME=1, respectively).

PR:	230627
This commit is contained in:
Alexey Dokuchaev 2019-03-27 11:16:30 +00:00
parent 6ac117884f
commit f79cc43024
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=496942
2 changed files with 22 additions and 13 deletions

View File

@ -1,6 +1,6 @@
--- UniversalDetector/Makefile.freebsd.orig 2016-05-17 06:39:04 UTC
--- UniversalDetector/Makefile.freebsd.orig 2016-05-20 18:45:30 UTC
+++ UniversalDetector/Makefile.freebsd
@@ -1,10 +1,7 @@
@@ -1,28 +1,22 @@
# Compilers and linkers
-OBJCC = clang
@ -12,7 +12,11 @@
# Options for compilation
@@ -16,13 +13,12 @@ GNUSTEP_OPTS = -DGNUSTEP \
GNUSTEP_OPTS = -DGNUSTEP \
- -DGNU_RUNTIME=1 \
-D_NATIVE_OBJC_EXCEPTIONS \
- -fgnu-runtime \
-fexceptions \
-fobjc-exceptions \
-fconstant-string-class=NSConstantString
@ -29,10 +33,11 @@
OBJC_OPTS = -std=gnu99
@@ -46,8 +42,8 @@ LIBS = -Wl,--no-whole-archive \
@@ -45,9 +39,8 @@ LIBS = -Wl,--no-whole-archive \
ALL_LDFLAGS = -Wl,--whole-archive \
-fexceptions \
-fgnu-runtime \
- -fgnu-runtime \
- -L/usr/local/GNUstep/System/Library/Libraries \
- -L/usr/local/lib \
+ -L$(LOCALBASE)/GNUstep/System/Library/Libraries \

View File

@ -1,6 +1,6 @@
--- XADMaster/Makefile.freebsd.orig 2016-05-17 06:39:04 UTC
--- XADMaster/Makefile.freebsd.orig 2016-05-20 18:45:30 UTC
+++ XADMaster/Makefile.freebsd
@@ -1,10 +1,7 @@
@@ -1,28 +1,21 @@
# Compilers and linkers
-OBJCC = clang
@ -12,7 +12,11 @@
# Options for compilation
@@ -16,13 +13,11 @@ GNUSTEP_OPTS = -DGNUSTEP \
GNUSTEP_OPTS = -DGNUSTEP \
- -DGNU_RUNTIME=1 \
-D_NATIVE_OBJC_EXCEPTIONS \
- -fgnu-runtime \
-fexceptions \
-fobjc-exceptions \
-fconstant-string-class=NSConstantString
@ -29,7 +33,7 @@
OBJC_OPTS = -std=gnu99
@@ -42,6 +37,7 @@ LIBS = -Wl,--no-whole-archive \
@@ -42,15 +35,15 @@ LIBS = -Wl,--no-whole-archive \
-lgnustep-base \
-lz \
-lbz2 \
@ -37,10 +41,10 @@
-licuuc \
-lobjc \
-lm
@@ -49,8 +45,8 @@ LIBS = -Wl,--no-whole-archive \
ALL_LDFLAGS = -Wl,--whole-archive \
-fexceptions \
-fgnu-runtime \
- -fgnu-runtime \
- -L/usr/local/lib \
- -L/usr/local/GNUstep/System/Library/Libraries \
+ -L$(LOCALBASE)/lib \
@ -48,7 +52,7 @@
$(LDFLAGS)
# Paths
@@ -74,7 +70,7 @@ libXADMaster.a: $(LIBRARY_OBJS)
@@ -74,7 +67,7 @@ libXADMaster.a: $(LIBRARY_OBJS)
$(AR) rcs $@ $^
../UniversalDetector/libUniversalDetector.a:
@ -57,7 +61,7 @@
XADTest2: $(XADTEST2_OBJS) libXADMaster.a ../UniversalDetector/libUniversalDetector.a
$(LD) $(ALL_LDFLAGS) -o $@ $^ $(LIBS)
@@ -99,7 +95,7 @@ lsar: $(LSAR_OBJS) $(CMDLINE_OBJS) libXA
@@ -99,7 +92,7 @@ lsar: $(LSAR_OBJS) $(CMDLINE_OBJS) libXADMaster.a ../U
clean:
rm -rf $(BUILD_DIR) $(EXECUTABLE_FILES) $(LIBRARY_FILES)