[asterisk-bugs] [JIRA] (ASTERISK-11015) NetBSD Build Needs RPATH set in 1.2.25

Friendly Automation (JIRA) noreply at issues.asterisk.org
Wed Mar 14 10:16:13 CDT 2018


    [ https://issues.asterisk.org/jira/browse/ASTERISK-11015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=242587#comment-242587 ] 

Friendly Automation commented on ASTERISK-11015:
------------------------------------------------

Change 8479 merged by Joshua Colp:
BuildSystem: Add NetBSD.

[https://gerrit.asterisk.org/8479|https://gerrit.asterisk.org/8479]

> NetBSD Build Needs RPATH set in 1.2.25
> --------------------------------------
>
>                 Key: ASTERISK-11015
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-11015
>             Project: Asterisk
>          Issue Type: Bug
>          Components: Core/BuildSystem
>            Reporter: Curt Sampson
>         Attachments: z
>
>
> (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)



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list