slackbuilds_ponce/libraries/pidgin-mra/use_our_cflags.diff
chinarulezzz 9d2aeabb20 libraries/pidgin-mra: Added (a Mail.ru plug-in for libpurple)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
2011-12-17 23:27:34 -06:00

20 lines
816 B
Diff

diff -Nur pidgin-mra-0.1.4.2.orig/Makefile pidgin-mra-0.1.4.2/Makefile
--- pidgin-mra-0.1.4.2.orig/Makefile 2011-05-18 16:28:37.000000000 -0500
+++ pidgin-mra-0.1.4.2/Makefile 2011-12-17 23:24:03.447852844 -0600
@@ -1,6 +1,7 @@
LIBDIR ?= /usr/lib
DATADIR ?= /usr/share
LINUX_COMPILER = gcc
+OPTS = -O2
LIBPURPLE_CFLAGS = -I/usr/include/libpurple -DPURPLE_PLUGINS -DENABLE_NLS
GLIB_CFLAGS = $(shell pkg-config --cflags glib-2.0)
@@ -50,7 +51,7 @@
rm -f libmra.so
libmra.so: ${MRA_SOURCES}
- ${LINUX_COMPILER} ${LIBPURPLE_CFLAGS} -Wall -Wextra -pthread ${GLIB_CFLAGS} -I. -g3 -O2 -pipe ${MRA_SOURCES} -o libmra.so -shared -fPIC -DPIC
+ ${LINUX_COMPILER} ${LIBPURPLE_CFLAGS} -Wall -Wextra -pthread ${GLIB_CFLAGS} -I. -g3 ${OPTS} -pipe ${MRA_SOURCES} -o libmra.so -shared -fPIC -DPIC
release: libmra.so