forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ngstar-2.1.8-ldflags.patch
32 lines (29 loc) · 1.01 KB
/
ngstar-2.1.8-ldflags.patch
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
diff -ru ngstar-2.1.8.orig/src/Makefile ngstar-2.1.8/src/Makefile
--- ngstar-2.1.8.orig/src/Makefile 2005-11-09 08:11:22.000000000 -0500
+++ ngstar-2.1.8/src/Makefile 2014-11-18 23:58:45.565366080 -0500
@@ -33,8 +33,8 @@
endif
endif
ifdef USE_NCURSES
- CC_LIBS += -lncurses -lgpm
- CC_LIBS_STATIC += -lncurses -lgpm
+ CC_LIBS += $(shell pkg-config ncurses --libs) -lgpm
+ CC_LIBS_STATIC += $(shell pkg-config ncurses --libs) -lgpm
NCURSES_UI_OBJ = Ncurses_UI.o
@@ -56,8 +56,7 @@
$(BIN) : $(SOURCE) $(BIN_DEPS)
echo "Compiling $(BIN)"
- $(CXX) $< $(BIN_DEPS) -o $@ $(CC_LIBS) $(CC_INCLUDES) $(CPPFLAGS)
- strip -s $@
+ $(CXX) ${LDFLAGS} $< $(BIN_DEPS) -o $@ $(CC_LIBS) $(CC_INCLUDES) $(CPPFLAGS)
ifdef USE_FLTK2
-ln -s `basename $(BIN)` $(BIN_FLTK2)
endif
@@ -68,7 +67,6 @@
$(BIN_STATIC) : $(SOURCE) $(BIN_DEPS)
echo "Compiling $(BIN)"
$(CXX) -static $< $(BIN_DEPS) -o $@ $(CC_LIBS_STATIC) $(CC_INCLUDES) $(CPPFLAGS)
- strip -s $@
ifdef USE_FLTK2
-ln -s `basename $(BIN_STATIC)` $(BIN_STATIC_FLTK2)
endif