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/app-misc/wcd/files/wcd-5.2.4-gentoo.patch

71 lines
1.3 KiB

Makefile | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
--- wcd-5.2.4/src/Makefile
+++ wcd-5.2.4/src/Makefile
@@ -50,12 +50,12 @@
CC ?= gcc
STATIC =
-STRIP = strip
+STRIP =
ENABLE_NLS = 1
PACKAGE = wcd
-EXT = .exe
+EXT =
PROGRAM = $(PACKAGE)$(EXT)
BIN = $(PROGRAM)
@@ -184,9 +184,9 @@
# possible values: ncurses, curses, pdcurses, pdcursesw or <empty>
ifdef UCS
- CURSES = ncursesw
+ CURSES = $(shell pkg-config --libs ncursesw)
else
- CURSES = ncurses
+ CURSES = $(shell pkg-config --libs ncurses)
endif
ifdef CURSES
@@ -197,7 +197,7 @@
ifneq (,$(CURSES))
DEFS_CURSES = -DWCD_USECURSES
- LIB_CURSES = -l$(CURSES)
+ LIB_CURSES = $(CURSES)
endif
@@ -381,15 +381,15 @@
endif
LDFLAGS_USER =
-LDFLAGS = $(RPM_OPT_FLAGS) \
+LIBS = $(RPM_OPT_FLAGS) \
$(LDFLAGS_EXTRA) \
$(NLFLAG) \
$(LDFLAG_STATIC) \
$(LDFLAGS_USER)
-LIBS = $(LIB_CURSES) \
- $(LIB_UNISTRING) \
- $(LIBS_EXTRA)
+LIBS += $(LIB_CURSES) \
+ $(LIB_UNISTRING) \
+ $(LIBS_EXTRA)
DEFS_USER =
DEFS = $(DEF_UNIX) $(DEFS_CURSES) $(EXTRA_DEFS) $(DEFS_USER)
@@ -446,7 +446,7 @@
$(BIN): $(OBJS1)
$(MAKE) status
- $(CC) $(OBJS1) $(LDFLAGS) $(LIBS) -o $@
+ $(CC) $(LDFLAGS) $(OBJS1) -o $@ $(LIBS)
%.o: %.c
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(DEFS) -c $< -o $@