Opened 12 years ago

Last modified 12 years ago

#38389 closed enhancement

hdf5-18: LLVM C11 support — at Version 1

Reported by: l@… Owned by: mmoll@…
Priority: Low Milestone:
Component: ports Version: 2.1.3
Keywords: C11 Cc:
Port: hdf5-18

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hello,

For the C++ support for this port under Xcode if compiling with LLVM stdlib the flag -stdlib=libc++ is required if a project has been compiled with LLVM C11 support in Xcode. As such the following variant is necessary for the linker to not complain.

variant c11 description {
    Build with C11 support.
} conflicts universal gcc44 gcc45 gcc46 gcc47 {
    configure.cxxflags          -stdlib=libc++
}

Given that LLVM is the default compiler now, this should perhaps even be a default variant....

/Lasse

Change History (1)

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

Description: modified (diff)
Owner: changed from macports-tickets@… to mmoll@…
Summary: LLVM C11 supporthdf5-18: LLVM C11 support

When you say "LLVM is the default compiler now", that's not true for all versions of Xcode that MacPorts supports (Xcode 2.4.1 and up, mostly).

Why does this new variant need to conflict with universal? We like being able to build universal, so I would prefer if the default set of variants did not prevent it.

Shouldn't you be appending to the cxxflags rather than overwriting them?

Note: See TracTickets for help on using tickets.