summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2010-10-14 10:15:09 +0000
committerAlfredo Tupone <tupone@gentoo.org>2010-10-14 10:15:09 +0000
commit5f6595c4f54f368764e466eb1d509be604ba6834 (patch)
treed400a2ecf8cc92fec367e0b6640a6e9cc43b8545 /games-roguelike/wrogue/files
parentMarked ~x64-solaris (diff)
downloadgentoo-2-5f6595c4f54f368764e466eb1d509be604ba6834.tar.gz
gentoo-2-5f6595c4f54f368764e466eb1d509be604ba6834.tar.bz2
gentoo-2-5f6595c4f54f368764e466eb1d509be604ba6834.zip
Respect LDFLAGS. Bug #335235
(Portage version: 2.1.9.14/cvs/Linux i686)
Diffstat (limited to 'games-roguelike/wrogue/files')
-rw-r--r--games-roguelike/wrogue/files/wrogue-0.8.0b-ldflags.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/games-roguelike/wrogue/files/wrogue-0.8.0b-ldflags.patch b/games-roguelike/wrogue/files/wrogue-0.8.0b-ldflags.patch
new file mode 100644
index 000000000000..3341965e5184
--- /dev/null
+++ b/games-roguelike/wrogue/files/wrogue-0.8.0b-ldflags.patch
@@ -0,0 +1,29 @@
+--- src/linux.mak.old 2010-10-14 11:07:22.000000000 +0200
++++ src/linux.mak 2010-10-14 11:08:00.000000000 +0200
+@@ -19,7 +19,7 @@
+ # common compiler/linker flags
+ #
+ CFLAGS=-I./include -I./lib -std=c89 `sdl-config --cflags`
+-LDFLAGS=-lm `sdl-config --libs`
++LDLIBS=-lm `sdl-config --libs`
+
+
+ SRC=\
+@@ -40,7 +40,7 @@
+ #
+ .PHONY: release
+ release: CFLAGS += -pipe -O2 -fomit-frame-pointer -march=i686
+-release: LDFLAGS += -Wl,-O1
++release: LDLIBS += -Wl,-O1
+ release: STRIP_BINARY = yes
+ release: build
+
+@@ -94,7 +94,7 @@
+ @$(CC) $(CFLAGS) -o $@ -c $<
+
+ $(EXE): $(OBJ)
+- @$(CC) $(OBJ) $(LDFLAGS) -o $@
++ $(CC) $(LDFLAGS) $(OBJ) $(LDLIBS) -o $@
+
+
+