aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/unarchiver/files/patch-UniversalDetector_Makefile.freebsd
blob: 021d56a92c9384fcc52235035eae91a93f873822 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
--- UniversalDetector/Makefile.freebsd.orig 2015-09-23 20:24:59 UTC
+++ UniversalDetector/Makefile.freebsd
@@ -1,10 +1,7 @@
 # Compilers and linkers
 
-OBJCC = clang
-CC = clang
-CXX = clang++
+OBJCC ?= $(CC)
 LD = $(CXX)
-AR = ar
 
 # Options for compilation
 
@@ -16,13 +13,12 @@ GNUSTEP_OPTS =  -DGNUSTEP \
        -fobjc-exceptions \
        -fconstant-string-class=NSConstantString
 
-GCC_OPTS =     -O2 \
+GCC_OPTS =     $(CFLAGS) \
        -Wno-import \
        -Wno-multichar \
-       -g \
        -D_FILE_OFFSET_BITS=64 \
-       -isystem /usr/local/GNUstep/System/Library/Headers \
-       -I/usr/local/include
+       -isystem $(LOCALBASE)/GNUstep/System/Library/Headers \
+       -I$(LOCALBASE)/include
 
 OBJC_OPTS =    -std=gnu99
 
@@ -46,8 +42,8 @@ LIBS =  -Wl,--no-whole-archive \
 ALL_LDFLAGS =  -Wl,--whole-archive \
        -fexceptions \
        -fgnu-runtime \
-       -L/usr/local/GNUstep/System/Library/Libraries \
-       -L/usr/local/lib \
+       -L$(LOCALBASE)/GNUstep/System/Library/Libraries \
+       -L$(LOCALBASE)/lib \
        $(LDFLAGS)
 
 # Paths