tech-pkg archive

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

devel/gobject-introspection/Makefile 1.60



i don't think "LD_LIBRARY_PATH" is portable?   it doesn't work on osx
as it uses the dylib dynamic linking system and i get errors like:

dyld: Library not loaded: @rpath/libgirepository-1.0.1.dylib
  Referenced from: /usr/local/src/pkgsrc/devel/gobject-introspection/work/gobject-introspection-1.60.1/output/tools/g-ir-compiler
  Reason: image not found

trying to compile gobject-introspection.

is there a better way do fix this issue?


chuck



===================================================================
RCS file: /cvsroot/pkgsrc/devel/gobject-introspection/Makefile,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -r1.59 -r1.60
--- Makefile    3 Jun 2019 10:47:20 -0000       1.59
+++ Makefile    3 Jun 2019 12:29:40 -0000       1.60
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.59 2019/06/03 10:47:20 prlw1 Exp $
+# $NetBSD: Makefile,v 1.60 2019/06/03 12:29:40 ryoon Exp $
 
 DISTNAME=      gobject-introspection-1.60.1
 CATEGORIES=    devel gnome
@@ -32,6 +32,8 @@
 SUBST_SED.timet+=      -e 's,@TIMET_CTYPE@,glong,g'
 .endif
 
+MAKE_ENV+=     LD_LIBRARY_PATH=${WRKSRC}/output/girepository
+
 BUILDLINK_API_DEPENDS.glib2+= glib2>=2.58.0
 .include "../../devel/glib2/buildlink3.mk"
 BUILDLINK_API_DEPENDS.libffi+= libffi>=3.0.0




Home | Main Index | Thread Index | Old Index