You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-puzzle/ngstar/files/ngstar-2.1.8-ldflags.patch

33 lines
1.0 KiB

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