pkgsrc-Bugs archive

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

pkg/49375: bash fails to link with libintl when using clang



>Number:         49375
>Category:       pkg
>Synopsis:       bash fails to link with libintl when using clang
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 07 17:15:00 +0000 2014
>Originator:     Dennis Lindroos
>Release:        pkgsrc-2014Q3
>Organization:
>Environment:
FreeBSD 10.1 RC4
>Description:
The -R option doesn't exist in clang(1), atleast on FreeBSD's system compiler 3.4.1 (I have not tested any other versions)..

Bash build tries to use -R to link with libintl and bails out with "clang: error: unknown argument: '-R/usr/pkg/lib'"

I found that patching "configure" does the job, but does it break anything or is there a better way?

Dennis.
>How-To-Repeat:

>Fix:
--- configure.orig	2014-02-11 17:38:00.000000000 +0200
+++ configure	2014-11-07 17:26:35.757195670 +0200
@@ -8837,7 +8837,7 @@
   fi
   if test "X$ltrpathdirs" != "X"; then
             for found_dir in $ltrpathdirs; do
-      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
+      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-Wl,-R$found_dir"
     done
   fi
 



Home | Main Index | Thread Index | Old Index