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

Chris Savinovich (JIRA) noreply at issues.asterisk.org
Thu Apr 19 13:32:54 CDT 2018


     [ https://issues.asterisk.org/jira/browse/ASTERISK-11015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Savinovich updated ASTERISK-11015:
----------------------------------------

    Target Release Version/s: 15.4.0

> 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
>      Target Release: 13.21.0, 15.4.0
>
>         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