21 lines
1.1 KiB
Plaintext
21 lines
1.1 KiB
Plaintext
$OpenBSD: patch-src_common_Makefile,v 1.2 2006/05/25 17:56:10 jolan Exp $
|
|
--- src/common/Makefile.orig Mon May 8 12:44:06 2006
|
|
+++ src/common/Makefile Mon May 8 12:44:06 2006
|
|
@@ -5,12 +5,12 @@ HAVE_XSCRNSAVER = $(shell pkg-config --e
|
|
|
|
ifeq ($(HAVE_XSCRNSAVER),YES)
|
|
# We link with libXScrnsaver from modular X.Org X11
|
|
-CFLAGS = `pkg-config --cflags gtk+-2.0 pygtk-2.0 xscrnsaver` -fpic -I/usr/include/python$(PYTHONVER) -I.
|
|
-LDFLAGS = `pkg-config --libs gtk+-2.0 pygtk-2.0 xscrnsaver` -lpython$(PYTHONVER)
|
|
+CFLAGS += `pkg-config --cflags gtk+-2.0 pygtk-2.0 xscrnsaver` -fpic ${PY_CFLAGS} -I.
|
|
+LDFLAGS += `pkg-config --libs gtk+-2.0 pygtk-2.0 xscrnsaver` -lpython$(PYTHONVER)
|
|
else
|
|
# # We link with libXScrnsaver from monolithic X.Org X11
|
|
-CFLAGS = `pkg-config --cflags gtk+-2.0 pygtk-2.0` -fpic -I/usr/include/python$(PYTHONVER) -I.
|
|
-LDFLAGS = `pkg-config --libs gtk+-2.0 pygtk-2.0` -L/usr/X11R6$(LIBDIR) -lX11 \
|
|
+CFLAGS += `pkg-config --cflags gtk+-2.0 pygtk-2.0` -fpic ${PY_CFLAGS} -I.
|
|
+LDFLAGS += `pkg-config --libs gtk+-2.0 pygtk-2.0` -L/usr/X11R6$(LIBDIR) -lX11 \
|
|
-lXss -lXext -lpython$(PYTHONVER)
|
|
endif
|
|
|