forked from schani/mathmap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibnoise-static.diff
61 lines (51 loc) · 2.14 KB
/
libnoise-static.diff
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
56
57
58
59
60
61
Index: libnoise/noise/lib/Makefile
===================================================================
--- libnoise.orig/noise/lib/Makefile 2009-06-07 18:36:45.000000000 +0200
+++ libnoise/noise/lib/Makefile 2009-06-07 18:52:45.000000000 +0200
@@ -1,7 +1,7 @@
-VPATH=../src/
+VPATH=../src/.libs
.PHONY: all clean
-all: libnoise.a libnoise.la libnoise.so.0.3
+all: libnoise.a libnoise.la
-cp $? .
clean:
Index: libnoise/noise/src/Makefile
===================================================================
--- libnoise.orig/noise/src/Makefile 2009-06-07 18:32:25.000000000 +0200
+++ libnoise/noise/src/Makefile 2009-06-07 18:49:20.000000000 +0200
@@ -6,23 +6,16 @@
DEPENDS=$(SOURCES:.cpp=.d)
# What source objects are we building?
-OBJECTS=$(SOURCES:.cpp=.o)
+OBJECTS=$(SOURCES:.cpp=.lo)
.PHONY: all clean cleandeps cleanobjs cleanlib libnoise libnoise.so libnoise.so.0
# hooks for future makefiles being able to make multiple SOs, or older SOs
-libnoise: libnoise.so libnoise.a libnoise.la
-libnoise.so: libnoise.so.0
-libnoise.so.0: libnoise.so.0.3
+libnoise: libnoise.la
# Real build targets
-libnoise.so.0.3: $(OBJECTS)
- $(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -shared -Wl,-soname=libnoise.so.0 -o $@ $(OBJECTS:.o=.lo)
-
-libnoise.a: $(OBJECTS)
- $(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -o $@ $(OBJECTS)
libnoise.la: $(OBJECTS)
- $(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) -o $@ $(OBJECTS:.o=.lo)
+ $(LIBTOOL) --mode=link $(CXX) -static $(LDFLAGS) -o $@ $(OBJECTS:.o=.lo)
clean: cleandeps cleanobjs cleanlib
cleandeps:
@@ -45,11 +38,11 @@
rm -f $@.$$$$
# C and C++ libtool (rather than raw CXX/CC) use
-%.o %.lo: %.cpp
- $(LIBTOOL) --mode=compile $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $(@:.lo=.o)
+%.lo: %.cpp
+ $(LIBTOOL) --mode=compile $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@
-%.o %.lo: %.c
- $(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $(@:.lo=.o)
+%.lo: %.c
+ $(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
# If dependancies have never been built this will produce a horde of
# "file not found" warnings and *then* build the deps. Very odd.