PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 50 - linker flags --gc-sections not supported on OSX GCC
: linker flags --gc-sections not supported on OSX GCC
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: PySide
: HEAD
: Macintosh Mac OS
: P2 major
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2009-09-10 13:18 EEST by Brendan Duncan
Modified: 2009-10-14 10:56 EEST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brendan Duncan 2009-09-10 13:18:13 EEST
The flags
-Wl,--gc-sections -Wl,-O1 -Wl,--hash-style=gnu
are not supported by the OSX version of GCC.

Also, these flags should be put into CMAKE_SHARED_LINKER_FLAGS instead of
CMAKE_CXX_FLAGS.

In CMakeLists.txt, replace the CMAKE_CXX_FLAGS_RELEASE line with

IF(APPLE)
    set(CMAKE_CXX_FLAGS_RELEASE "-Wall -fvisibility=hidden
-fvisibility-inlines-hidden -Os -finline-limit=600 -ffunction-sections
-fomit-frame-pointer -fno-default-inline -fconserve-space -fno-enforce-eh-specs
-fno-threadsafe-statics -fno-implicit-inline-templates -DNDEBUG
-DBOOST_PYTHON_NO_PY_SIGNATURES")
ELSE(APPLE)
   set(CMAKE_CXX_FLAGS_RELEASE "-Wall -fvisibility=hidden
-fvisibility-inlines-hidden -Os -finline-limit=600 -ffunction-sections
-fomit-frame-pointer -fno-default-inline -fconserve-space -fno-enforce-eh-specs
-fno-threadsafe-statics -fno-implicit-inline-templates -DNDEBUG
-DBOOST_PYTHON_NO_PY_SIGNATURES -Wl,--gc-sections -Wl,-O1
-Wl,--hash-style=gnu")
ENDIF(APPLE)
Comment 1 renato filho 2009-09-21 11:00:14 EEST
Fixed on commit: 39df98619bd51dde04237ff6bd0a3fc9402dd396