summaryrefslogtreecommitdiff
path: root/packages/matrixssl/matrixssl-1.1.1/cross.patch
blob: 05ae0523e89cfd2e1defef5298d0009cd7e84f7a (plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
--- src/Makefile.porig	2004-06-10 15:03:25.000000000 -0400
+++ src/Makefile	2004-06-11 20:16:30.701134886 -0400
@@ -6,7 +6,7 @@
 #
 
 CC      = gcc
-STRIP   = strip
+STRIP   = -s
 O       = .o
 SO      = .so
 E       =
@@ -37,17 +37,17 @@
 #
 ifdef MATRIXSSL_DEBUG
 DFLAGS	= -g -Wall -DDEBUG
-STRIP	= test
+STRIP =
 else
-DFLAGS	= -O3
+DFLAGS	= -O2
 endif
 
 #
 #	Compile options
 #
-SHARED	= -shared
-CFLAGS  = $(DFLAGS) -DLINUX
-LDFLAGS = -nostdlib -lc -lpthread
+SHARED = -shared
+CFLAGS = $(DFLAGS) $(STRIP) -DLINUX
+LDLIBS = -nostdlib -lc -lpthread
 
 #
 #	Override variables for compilation on Mac OS X (Darwin)
@@ -57,8 +57,8 @@
 SO	= .dylib
 SHARED	= -dynamiclib
 CFLAGS += -DOSX -isystem -I/usr/include
-LDFLAGS = -flat_namespace -install_name @executable_path/../src/$(LIBRARY)
-STRIP = test
+LDLIBS = -flat_namespace -install_name @executable_path/../src/$(LIBRARY)
+STRIP =
 endif
 
 all: compile
@@ -77,8 +77,7 @@
 # Build the library
 #
 $(LIBRARY): $(OBJECTS)
-	$(CC) $(SHARED) -o $@ $^ $(LDFLAGS)
-	$(STRIP) $(LIBRARY)
+	$(CC) $(SHARED) -o $@ $^ $(LDFLAGS) $(LDLIBS)
 
 #
 #	Clean up all generated files