Opened 7 weeks ago

#57486 assigned defect

ace, tao @6.5.2: cc1plus: error: unrecognized command line option "-stdlib=libstdc++"

Reported by: ryandesign (Ryan Schmidt) Owned by: lockhart (Thomas Lockhart)
Priority: Normal Milestone:
Component: ports Version:
Keywords: snowleopard Cc: mojca (Mojca Miklavec)
Port: ace, tao

Description

ace and tao @6.5.2 fail to build on Snow Leopard because that OS uses gcc/g++ by default which don't support the -stdlib flag:

cc1plus: error: unrecognized command line option "-stdlib=libstdc++"

If you want to manually add the -stdlib flag as the portfile currently does, you must only do so if ${configure.cxx} contains the string clang.

Instead, you could use ${configure.cxxflags} which will contain the -stdlib flag if the compiler is clang and otherwise will not. I guess this is probably the way we should go.

We should also consider adding ${configure.cflags} where we reinplace @@CFLAGS@@ and adding ${configure.ldflags} where we reinplace @@LDFLAGS@@.

Finally, get_canonical_archflags cc should be get_canonical_archflags cxx since they're replacing @@CXXFLAGS@@.

Sorry, I had made a review of the PR with these comments, but I forgot to submit the review.

Change History (0)

Note: See TracTickets for help on using tickets.