pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/py-gdchart Use -fPIC for the shared object. F...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2b119695b2ec
branches:  trunk
changeset: 545903:2b119695b2ec
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Sun Aug 17 06:14:20 2008 +0000

description:
Use -fPIC for the shared object. Fixes broken build on amd64 and
probably others.

diffstat:

 graphics/py-gdchart/distinfo         |   4 ++--
 graphics/py-gdchart/patches/patch-aa |  13 +++++++------
 2 files changed, 9 insertions(+), 8 deletions(-)

diffs (51 lines):

diff -r 71ec348e739e -r 2b119695b2ec graphics/py-gdchart/distinfo
--- a/graphics/py-gdchart/distinfo      Sun Aug 17 05:55:15 2008 +0000
+++ b/graphics/py-gdchart/distinfo      Sun Aug 17 06:14:20 2008 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.8 2005/12/20 11:57:41 joerg Exp $
+$NetBSD: distinfo,v 1.9 2008/08/17 06:14:20 dholland Exp $
 
 SHA1 (gdchart-py-0.6.tar.gz) = 20547e8550bb8c925a3b9776739f9a5e93ce8692
 RMD160 (gdchart-py-0.6.tar.gz) = 6c8e430e53ab7adf2b83a8493afe570474532a26
 Size (gdchart-py-0.6.tar.gz) = 321891 bytes
-SHA1 (patch-aa) = d668c308d54aceedd09f4c5e39c5ad33f32c0e47
+SHA1 (patch-aa) = 41dff5a28491fed9e955a44e02f2003a9482f85e
 SHA1 (patch-ab) = b4acbd6a23b97056ae18ab9a91c1d5a0b2424eb2
diff -r 71ec348e739e -r 2b119695b2ec graphics/py-gdchart/patches/patch-aa
--- a/graphics/py-gdchart/patches/patch-aa      Sun Aug 17 05:55:15 2008 +0000
+++ b/graphics/py-gdchart/patches/patch-aa      Sun Aug 17 06:14:20 2008 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.4 2004/08/27 06:29:08 jlam Exp $
+$NetBSD: patch-aa,v 1.5 2008/08/17 06:14:21 dholland Exp $
 
---- Makefile.orig      Fri Mar 16 19:08:18 2001
-+++ Makefile   Wed Jul  2 13:09:19 2003
-@@ -12,10 +12,10 @@
+--- Makefile.orig      2001-03-16 14:08:18.000000000 -0500
++++ Makefile   2008-08-17 02:14:47.000000000 -0400
+@@ -12,10 +12,11 @@
  # SO          Extension for shared libs.
  
  HAVE_JPEG = 1
@@ -14,10 +14,11 @@
 +LIB_DIRS = -L${LOCALBASE}/lib -L/usr/lib ${COMPILER_RPATH_FLAG}${LOCALBASE}/lib -L${X11PREFIX}/lib ${COMPILER_RPATH_FLAG}${X11PREFIX}/lib
 +GCC = ${CC}
 +CFLAGS ?= -Wall -fpic -O2
++CFLAGS+=-fPIC
  
  # Linux
  LD = $(GCC) -shared
-@@ -31,21 +31,19 @@
+@@ -31,21 +32,19 @@ SO = .so
  
  # Shouldn't need to touch anything below this point.
  
@@ -47,7 +48,7 @@
  
  TARGET = gdchart$(SO)
  PY_SRC = gdc_py.c
-@@ -53,19 +51,11 @@
+@@ -53,19 +52,11 @@ PY_OBJ = $(PY_SRC:.c=.o)
  
  all: $(TARGET)
  



Home | Main Index | Thread Index | Old Index