/[gentoo-x86]/games-roguelike/wrogue/files/wrogue-0.8.0b-ldflags.patch
Gentoo

Contents of /games-roguelike/wrogue/files/wrogue-0.8.0b-ldflags.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Oct 14 10:15:09 2010 UTC (4 years, 9 months ago) by tupone
Branch: MAIN
CVS Tags: HEAD
Respect LDFLAGS. Bug #335235

(Portage version: 2.1.9.14/cvs/Linux i686)

1 --- src/linux.mak.old 2010-10-14 11:07:22.000000000 +0200
2 +++ src/linux.mak 2010-10-14 11:08:00.000000000 +0200
3 @@ -19,7 +19,7 @@
4 # common compiler/linker flags
5 #
6 CFLAGS=-I./include -I./lib -std=c89 `sdl-config --cflags`
7 -LDFLAGS=-lm `sdl-config --libs`
8 +LDLIBS=-lm `sdl-config --libs`
9
10
11 SRC=\
12 @@ -40,7 +40,7 @@
13 #
14 .PHONY: release
15 release: CFLAGS += -pipe -O2 -fomit-frame-pointer -march=i686
16 -release: LDFLAGS += -Wl,-O1
17 +release: LDLIBS += -Wl,-O1
18 release: STRIP_BINARY = yes
19 release: build
20
21 @@ -94,7 +94,7 @@
22 @$(CC) $(CFLAGS) -o $@ -c $<
23
24 $(EXE): $(OBJ)
25 - @$(CC) $(OBJ) $(LDFLAGS) -o $@
26 + $(CC) $(LDFLAGS) $(OBJ) $(LDLIBS) -o $@
27
28
29

  ViewVC Help
Powered by ViewVC 1.1.20