Opened 9 years ago

Last modified 9 years ago

#49004 closed defect

Apple clang 7.0 hangs on compiling glew.c — at Initial Version

Reported by: howarth.at.macports@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: jmr@…
Port: glew

Description

The Apple clang 7.0 compiler from Xcode 7.0.1 hangs on compiling...

/usr/bin/clang -DGLEW_NO_GLU -DGLEW_BUILD -O2 -Wall -W -Iinclude -dynamic -fno-common -ansi -pedantic -arch x86_64 -fPIC -o tmp/darwin/default/shared/glew.o -c src/glew.c

The workaround is to use the attached Portfile.diff which changes the optimization from -O2 to -Os in ${worksrcpath}/config/Makefile.darwin which is the fix used in fink's glew package.

Change History (1)

Changed 9 years ago by howarth.at.macports@…

Attachment: Portfile.diff added

compile at -Os to avoid clang hang in Xcode 7

Note: See TracTickets for help on using tickets.