Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#14077 closed defect (fixed)

curl's libcurl.pc contains universal archs

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc:
Port:

Description

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.

Change History (2)

comment:1 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

Fixed in r33404, I hope. The fix works on Intel; I hope it works on PowerPC too.

comment:2 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.