Build with big -fPIC.

From Brad, thanks.

OK sthen@
This commit is contained in:
edd 2012-08-18 18:57:38 +00:00
parent 70488cb82f
commit 809c36e89f
2 changed files with 14 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.3 2012/07/12 21:58:20 jasper Exp $
# $OpenBSD: Makefile,v 1.4 2012/08/18 18:57:38 edd Exp $
COMMENT = extensible drawing editor
@ -6,7 +6,7 @@ V = 7.1.2
SUBST_VARS += V
DISTNAME = ipe-${V}-src
PKGNAME = ipe-${V}
REVISION = 1
REVISION = 2
# their libraries would be installed as libxxx.so.${V}, overide this.
SHLIB_VERSION = 0.0

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-src_config_mak,v 1.1 2012/07/13 13:14:00 jasper Exp $
--- src/config.mak.orig Fri Jul 13 15:11:49 2012
+++ src/config.mak Fri Jul 13 15:12:03 2012
$OpenBSD: patch-src_config_mak,v 1.2 2012/08/18 18:57:38 edd Exp $
--- src/config.mak.orig Sun Jan 15 07:19:25 2012
+++ src/config.mak Fri Aug 10 06:52:53 2012
@@ -51,8 +51,8 @@ ifneq "$(luatest)" ""
LUA_CFLAGS ?= $(shell pkg-config --cflags lua)
LUA_LIBS ?= $(shell pkg-config --libs lua)
@ -12,3 +12,12 @@ $OpenBSD: patch-src_config_mak,v 1.1 2012/07/13 13:14:00 jasper Exp $
endif
GTK_CFLAGS ?= $(shell pkg-config --cflags gtk+-2.0)
GTK_LIBS ?= $(shell pkg-config --libs gtk+-2.0)
@@ -101,7 +101,7 @@ CXX = g++
# position independent code
# (it doesn't hurt much on 32bit Linux, although you could comment it
# out for slightly faster code)
-DLL_CFLAGS = -fpic
+DLL_CFLAGS = -fPIC
#
# --------------------------------------------------------------------
#