[MacPorts] #49004: glew: Apple clang 7.0 hangs on compiling glew.c (was: Apple clang 7.0 hangs on compiling glew.c)
MacPorts
noreply at macports.org
Tue Sep 29 18:03:20 PDT 2015
#49004: glew: Apple clang 7.0 hangs on compiling glew.c
------------------------------------+-------------------
Reporter: howarth.at.macports@… | Owner: jmr@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.3
Resolution: | Keywords:
Port: glew |
------------------------------------+-------------------
Changes (by ryandesign@…):
* owner: macports-tickets@… => jmr@…
* cc: jmr@… (removed)
Old 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.
New 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.
--
Comment:
The bug is really that the glew port is not honoring the MacPorts value
for configure.optflags (which is -Os by default).
--
Ticket URL: <https://trac.macports.org/ticket/49004#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list