pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/highlight p5-highlight: pass CXXFLAGS and LDF...
details: https://anonhg.NetBSD.org/pkgsrc/rev/3fc31ab6b623
branches: trunk
changeset: 372240:3fc31ab6b623
user: wiz <wiz%pkgsrc.org@localhost>
date: Thu Nov 30 15:13:19 2017 +0000
description:
p5-highlight: pass CXXFLAGS and LDFLAGS.
Fixes RELRO build.
diffstat:
textproc/highlight/distinfo | 4 +-
textproc/highlight/patches/patch-examples_swig_makefile | 27 ++++++++++++++++-
2 files changed, 28 insertions(+), 3 deletions(-)
diffs (53 lines):
diff -r 51f99a822065 -r 3fc31ab6b623 textproc/highlight/distinfo
--- a/textproc/highlight/distinfo Thu Nov 30 14:41:30 2017 +0000
+++ b/textproc/highlight/distinfo Thu Nov 30 15:13:19 2017 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.8 2015/11/04 01:59:30 agc Exp $
+$NetBSD: distinfo,v 1.9 2017/11/30 15:13:19 wiz Exp $
SHA1 (highlight-3.18.tar.bz2) = 985d0a3c707e3251fe50ffff66e11a8563777202
RMD160 (highlight-3.18.tar.bz2) = 960b2a9ed6071b0f48ef45da2d006f5f00d9b578
SHA512 (highlight-3.18.tar.bz2) = 1f939e117209e96d021216addc281ca7f265822f053f577ed7cb11b8ac9a1762bf84f8e1f9f5e67277004573b98e4b8732f48549aa674fe6801bfc1c0627b930
Size (highlight-3.18.tar.bz2) = 619669 bytes
-SHA1 (patch-examples_swig_makefile) = a252ca1f5a53d2edc590f2ccda8abfd42e32b965
+SHA1 (patch-examples_swig_makefile) = fb10a544d5807b1dbf67d028852d5c5cbf0f9bde
SHA1 (patch-makefile) = 1cf4c6225b36e822a40ec10917384367914ecb0f
SHA1 (patch-src_makefile) = 592b8a2934d7e4c7f3c5a241737f4d09215932a4
diff -r 51f99a822065 -r 3fc31ab6b623 textproc/highlight/patches/patch-examples_swig_makefile
--- a/textproc/highlight/patches/patch-examples_swig_makefile Thu Nov 30 14:41:30 2017 +0000
+++ b/textproc/highlight/patches/patch-examples_swig_makefile Thu Nov 30 15:13:19 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-examples_swig_makefile,v 1.1 2014/08/18 01:21:49 schmonz Exp $
+$NetBSD: patch-examples_swig_makefile,v 1.2 2017/11/30 15:13:19 wiz Exp $
Use pkgsrc-specified compiler and flags.
@@ -13,3 +13,28 @@
HL_INC=../../src/include/
HL_SRC=../../src/
+@@ -18,18 +18,18 @@ lib-stamp:
+
+ python: lib-stamp
+ swig -c++ -python -o highlight_wrap.cpp highlight.i
+- ${CXX} ${CFLAGS} -c highlight_wrap.cpp ${LUA_CFLAGS} ${PYTHON_CFLAGS} -I${HL_INC}
+- ${CXX} -shared -s highlight_wrap.o -L${HL_SRC} -lhighlight ${LUA_LIBS} -lpython2.7 -o _highlight.so
++ ${CXX} ${CFLAGS} ${LDFLAGS} -c highlight_wrap.cpp ${LUA_CFLAGS} ${PYTHON_CFLAGS} -I${HL_INC}
++ ${CXX} ${CXXFLAGS} ${LDFLAGS} -shared -s highlight_wrap.o -L${HL_SRC} -lhighlight ${LUA_LIBS} -lpython2.7 -o _highlight.so
+
+ perl: lib-stamp
+ swig -c++ -perl -o highlight_wrap.cpp highlight.i
+- ${CXX} ${CFLAGS} -c highlight_wrap.cpp ${LUA_CFLAGS} ${PERL_INC} -I${HL_INC}
+- ${CXX} -shared -s highlight_wrap.o -L${HL_SRC} -lhighlight ${LUA_LIBS} -o highlight.so
++ ${CXX} ${CFLAGS} ${LDFLAGS} -c highlight_wrap.cpp ${LUA_CFLAGS} ${PERL_INC} -I${HL_INC}
++ ${CXX} ${CXXFLAGS} ${LDFLAGS} -shared -s highlight_wrap.o -L${HL_SRC} -lhighlight ${LUA_LIBS} -o highlight.so
+
+ php: lib-stamp
+ swig -c++ -php -o highlight_wrap.cpp highlight.i
+- ${CXX} ${CFLAGS} -c highlight_wrap.cpp ${LUA_CFLAGS} ${PHP_INC} -I${HL_INC}
+- ${CXX} -shared -s highlight_wrap.o -L${HL_SRC} -lhighlight ${LUA_LIBS} -o highlight.so
++ ${CXX} ${CFLAGS} ${LDFLAGS} -c highlight_wrap.cpp ${LUA_CFLAGS} ${PHP_INC} -I${HL_INC}
++ ${CXX} ${CXXFLAGS} ${LDFLAGS} -shared -s highlight_wrap.o -L${HL_SRC} -lhighlight ${LUA_LIBS} -o highlight.so
+
+ clean: python-clean perl-clean php-clean
+ rm -f *-stamp
Home |
Main Index |
Thread Index |
Old Index