Summary: | ASTERISK-11015: NetBSD Build Needs RPATH set in 1.2.25 | ||
Reporter: | Curt Sampson (cjs) | Labels: | |
Date Opened: | 2007-12-12 03:34:17.000-0600 | Date Closed: | 2011-06-07 14:02:45 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Core/BuildSystem |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) z | |
Description: | (This is really about version 1.2.25, but it's not in the drop-down.) On NetBSD systems without /usr/pkg/lib in /etc/ld.so.conf (as is generally the correct way to do things), asterix may link to things in /usr/pkg/lib (because it's given an -L option to it), but the binary won't run because /usr/pkg/lib is not in the rpath. Fix is to add a -Wl,-R/usr/pkg/lib option to the link stage. (Patch pasted into "additional information" since there seems to place to attach it on this form.) ****** ADDITIONAL INFORMATION ****** Index: extsrc/bin/asterisk/Makefile =================================================================== --- extsrc/bin/asterisk/Makefile (revision 35) +++ extsrc/bin/asterisk/Makefile (working copy) @@ -395,7 +395,7 @@ endif ifeq ($(OSARCH),NetBSD) - LIBS+=-lpthread -lcrypto -lm -L$(CROSS_COMPILE_TARGET)/usr/pkg/lib -lncurses + LIBS+=-lpthread -lcrypto -lm -L$(CROSS_COMPILE_TARGET)/usr/pkg/lib -Wl,-R$(CROSS_COMPILE_TARGET)/usr/pkg/lib -lncurses endif ifeq ($(OSARCH),OpenBSD) | ||
Comments: | By: Joshua C. Colp (jcolp) 2007-12-12 09:18:27.000-0600 The 1.2 tree is now in a security fixes only state, but if this is applicable to 1.4 as well feel free to reopen with an applicable patch. By: Friendly Automation (friendly-automation) 2018-03-14 06:09:25.222-0500 Change 8478 merged by Joshua Colp: BuildSystem: Add NetBSD. [https://gerrit.asterisk.org/8478|https://gerrit.asterisk.org/8478] By: Friendly Automation (friendly-automation) 2018-03-14 06:18:36.006-0500 Change 8477 merged by Joshua Colp: BuildSystem: Add NetBSD. [https://gerrit.asterisk.org/8477|https://gerrit.asterisk.org/8477] By: Friendly Automation (friendly-automation) 2018-03-14 10:15:53.724-0500 Change 8479 merged by Joshua Colp: BuildSystem: Add NetBSD. [https://gerrit.asterisk.org/8479|https://gerrit.asterisk.org/8479] |