Opened 22 months ago

Last modified 21 months ago

#65561 closed defect

Need help with Port - unalz — at Version 2

Reported by: RobK88 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: Cc:
Port: unalz

Description (last modified by RobK88)

I need some help with fixing an old and abandoned port -- unalz.

It is broken in Macports. I have fixed the port and it will build on most systems just fine. One big step forward.

But on older Mac systems, I get the dreaded unalz is using libstdc++ (this installation is configured to use libc++).

I have patched the Makefile accordingly so the CFLAGS, CXXFLAGS and LDFLAGS set by Macports are honoured and appended to the flags in the Makefile.

But it looks like the default compiler on old Macs (e.g. g++ 4.2 on Lion) does not understand the -stdlib=libc++ flag. e.g. cc1plus: error: unrecognized command line option "-stdlib=libc++"

Of course, I can get around this by specifying configure.compiler=macports-clang-9.0 when installing or upgrading this port using macports.

Attached is the patched Makefile and the draft portfile. (I know I need to fix the formatting etc in the draft portfile).

Any help would be greatly appreciated. Is there a way to get the old Apple compilers to understand "-stdlib=libc++"? Maybe I need to specify the compiler in the portfile. e.g. clang-9.0 or greater. How would I do that?

Change History (5)

Changed 22 months ago by RobK88

Attachment: Portfile added

Portfile

Changed 22 months ago by RobK88

Attachment: Makefile Patched added

Makefile Patched by Macports

Changed 22 months ago by RobK88

Attachment: 1000-Makefile.patch added

Makefile Patch

comment:1 Changed 22 months ago by RobK88

Description: modified (diff)

comment:2 Changed 22 months ago by RobK88

Description: modified (diff)
Note: See TracTickets for help on using tickets.