[MacPorts] #64127: rust: scalpel.dylib is not built with the right cflags / -arch flags

MacPorts noreply at macports.org
Sat Dec 4 00:15:43 UTC 2021


#64127: rust: scalpel.dylib is not built with the right cflags / -arch flags
------------------------+----------------------
 Reporter:  ryandesign  |      Owner:  g5pw
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.7.1
 Keywords:              |       Port:  rust
------------------------+----------------------
 The rust portfile creates a helper dylib using this command:
 {{{
             system "${configure.cc} -dynamiclib -exported_symbols_list
 ${export_list_file} -o ${scalpel_dylib} ${prefix}/lib/libcxx/libc++.a"
 }}}
 I don't see MacPorts cflags in there, including `-arch` flags, so this
 will prevent a universal build from being possible.

 Granted, this block only takes effect on older systems, and the port
 already indicates that it only supports arm64 and x86_64, so on older
 x86_64 systems there is no opportunity to build universal anyway. Yet, it
 is still proper procedure to specify the correct `-arch` flags and cflags
 with every compilation. Who knows, maybe one day we can return i386
 support to the portfile to fix the librsvg headache; at that time at the
 latest building this lib for the right archs will be important.

-- 
Ticket URL: <https://trac.macports.org/ticket/64127>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list