[MacPorts] #14077: curl's libcurl.pc contains universal archs

MacPorts trac at macosforge.org
Sat Jan 26 02:03:05 PST 2008


#14077: curl's libcurl.pc contains universal archs
-------------------------------------+--------------------------------------
 Reporter:  ryandesign at macports.org  |       Owner:  ryandesign at macports.org
     Type:  defect                   |      Status:  new                    
 Priority:  Normal                   |   Milestone:  Port Bugs              
Component:  ports                    |     Version:  1.7.0                  
 Keywords:                           |  
-------------------------------------+--------------------------------------
 When installing `curl +universal` the installed pkg-config file contains
 the universal `-arch` flags ("`-arch ppc -arch i386`"):

 {{{
 $ tail -n 12 /opt/local/lib/pkgconfig/libcurl.pc
 prefix=/opt/local
 exec_prefix=${prefix}
 libdir=${exec_prefix}/lib
 includedir=${prefix}/include

 Name: libcurl
 URL: http://curl.haxx.se/
 Description: Library to transfer files with ftp, http, etc.
 Version: 7.17.1
 Libs: -L${libdir} -lcurl -L/opt/local/lib -arch ppc -arch i386
 -L/opt/local/lib   -L/opt/local/lib
 Libs.private: -lssl -lcrypto  -lssl -lcrypto -lz   -lz
 Cflags: -I${includedir}
 $
 }}}

 That's not good because now any other software linking with curl will try
 at least partially to build itself universal, even if the universal
 variant of that software was not requested. This may cause weird errors
 building that other software. (This happened to me a few days ago.)

 `libcurl.pc` should not contain the `-arch` flags.

-- 
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14077>
MacPorts </projects/macports>
Ports system for Mac OS


More information about the macports-tickets mailing list