forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gmudix-1.0-as-needed.patch
28 lines (26 loc) · 1.06 KB
/
gmudix-1.0-as-needed.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
--- a/configure.in
+++ b/configure.in
@@ -8,7 +8,8 @@
AC_PROG_MAKE_SET
dnl Checks for libraries.
-PKG_CHECK_MODULES(BASE_DEPENDENCIES, gtk+-2.0 >= 2.0.0)
+PKG_CHECK_MODULES(GTK, gtk+-2.0)
+PKG_CHECK_MODULES(GTHREAD, gthread-2.0)
dnl Checks for header files.
AC_HEADER_STDC
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,10 +1,5 @@
bin_PROGRAMS = gmudix
gmudix_SOURCES = alias.c commands.c file.c gui_alias.c gui_capture.c gui_character.c gui_color.c gui_font.c gui_general.c gui_macro.c gui_main.c gui_path.c gui_preferences.c gui_tab.c gui_timer.c gui_trigger.c gui_user.c gui_variable.c history.c log.c macro.c mccp.c mudix.c net.c path.c process.c string.c tabs.c telnet.c timer.c trigger.c user.c variable.c
-INCLUDES = -Wall -I.. -I../include `pkg-config --cflags gtk+-2.0`
-gmudix_LDFLAGS = -lz `pkg-config --libs gtk+-2.0` `pkg-config --libs gthread-2.0`
-
-if DEBUG_SYMBOLS
-CFLAGS := $(CFLAGS) -O2 -g
-else
-CFLAGS := $(CFLAGS) -O2
-endif
+AM_CFLAGS = -Wall
+INCLUDES = -I.. -I../include $(GTK_CFLAGS) $(GTHREAD_CFLAGS)
+LDADD = -lz $(GTK_LIBS) $(GTHREAD_LIBS)