File: 15_ld-as-needed.diff

package info (click to toggle)
einstein 2.0.dfsg.2-10
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 2,548 kB
  • sloc: cpp: 10,437; makefile: 78; sh: 1
file content (31 lines) | stat: -rw-r--r-- 960 bytes parent folder | download | duplicates (2)
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
--- einstein-2.0.dfsg.2.orig/Makefile
+++ einstein-2.0.dfsg.2/Makefile
@@ -17,7 +17,8 @@
 PROFILER=#-pg
 DEBUG=#-ggdb
 CXXFLAGS=-pipe -Wall $(OPTIMIZE) $(DEBUG) `sdl-config --cflags` -DPREFIX=L\"$(PREFIX)\" $(PROFILER)
-LNFLAGS=-pipe -lSDL_ttf -lfreetype `sdl-config --libs` -lz -lSDL_mixer $(PROFILER)
+LNFLAGS=-pipe $(PROFILER)
+LIBS=-lSDL_ttf -lfreetype `sdl-config --libs` -lz -lSDL_mixer
 INSTALL=install
 
 TARGET=einstein
@@ -51,7 +51,7 @@
 $(TARGET): $(OBJECTS)
 	cd mkres && make
 	cd res && ../mkres/mkres --source resources.descr --output einstein.res
-	$(CXX) $(LNFLAGS) $(OBJECTS) -o $(TARGET)
+	$(CXX) $(LNFLAGS) $(OBJECTS) -o $(TARGET) $(LIBS)
 
 clean:
 	rm -f $(OBJECTS) core* *core $(TARGET) *~
--- einstein-2.0.dfsg.2.orig/mkres/Makefile
+++ einstein-2.0.dfsg.2/mkres/Makefile
@@ -1,6 +1,6 @@
 OPTIMIZE=-O6
 CFLAGS=-Wall $(OPTIMIZE)
-LNFLAGS=-lz
+LIBS=-lz
 
 TARGET=mkres
 SOURCES=main.cpp compressor.cpp unicode.cpp streams.cpp table.cpp \