tech-pkg archive

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

Re: r-path



On 06/20/17 13:15, Z Saifullah wrote:

Hello

What happens if source code does not have any R_PATH and we need to modify R_PATH for reasons.

Any one faced any problem like that? If so , please let me know how you attacked the problem.

Thanks

Amil

p.s: I am working on cortex-var


Amil,


Take a look at how some existing packages use rpath, e.g.


NetBSD netbsddev.hpc bacon ~ 413: grep -i -C 1 rpath /usr/pkgsrc/math/*/Makefile
/usr/pkgsrc/math/clisp-pari/Makefile-
/usr/pkgsrc/math/clisp-pari/Makefile:CONFIGURE_ENV+= "ac_cv_libpari_libs=${ac_cv_libpari_libs} ${COMPILER_RPATH_FLAG}${LOCALBASE}/lib"
/usr/pkgsrc/math/clisp-pari/Makefile-
--
/usr/pkgsrc/math/fgmp/Makefile- ${LIBTOOL} --mode=link ${CC} -o libfgmp.la gmp.lo \ /usr/pkgsrc/math/fgmp/Makefile: -rpath ${PREFIX}/lib -version-info 1:0; \
/usr/pkgsrc/math/fgmp/Makefile- )
--
/usr/pkgsrc/math/minisat/Makefile-MAKE_ENV=     MROOT=$(WRKSRC)
/usr/pkgsrc/math/minisat/Makefile:MAKE_ENV+= LFLAGS="-L${BUILDLINK_PREFIX.zlib}/lib ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.zlib}/lib"
/usr/pkgsrc/math/minisat/Makefile-BUILD_TARGET= # empty
--
/usr/pkgsrc/math/scilab/Makefile-CONFIGURE_ENV+= TK_CONFIG_SH=${BUILDLINK_PREFIX.tk}/lib/tkConfig.sh /usr/pkgsrc/math/scilab/Makefile:CONFIGURE_ENV+= CC_LDFLAGS=${X11_LDFLAGS:Q}\ ${COMPILER_RPATH_FLAG:Q}${BUILDLINK_PREFIX.tk:Q}/lib /usr/pkgsrc/math/scilab/Makefile:CONFIGURE_ENV+= FC_LDFLAGS=${X11_LDFLAGS:Q}\ ${COMPILER_RPATH_FLAG:Q}${BUILDLINK_PREFIX.tk:Q}/lib
/usr/pkgsrc/math/scilab/Makefile-
--
/usr/pkgsrc/math/yacas/Makefile-
/usr/pkgsrc/math/yacas/Makefile:LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/yacas
/usr/pkgsrc/math/yacas/Makefile-


This is just the math category. There are many more examples in other categories as well.


Cheers,


    JB

--
Earth is a beta site.



Home | Main Index | Thread Index | Old Index