Changeset 99b54a in git for m4/flags.m4


Ignore:
Timestamp:
Jul 10, 2013, 11:49:09 PM (11 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
bc2aed6a87c90a5858f5c011fa0ade08053dcac5
Parents:
ea5f3f6ec425ba64388b5f649fd56fcc93a4cd8d
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-07-10 23:49:09+02:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-07-11 01:05:35+02:00
Message:
Fixing static use of _dynamic_ modules as built-ins + dynamic loading / OS X

add/fix: linked-in static "dynamic" modules: pyobject + syzextra
fix: fixed static building of Singular
fix: adaptation for static embedding of syzextra

add: added '-flat_namespace -weak_reference_mismatches weak -undefined dynamic_lookup' due to Mac OS X
ps: -export-dynamic -avoid-version
File:
1 edited

Legend:

Unmodified
Added
Removed
  • m4/flags.m4

    rea5f3f6 r99b54a  
    103103 fi
    104104 
    105  if test "x${ENABLE_OPTIMIZATION}" != xno; then
    106   OPTFLAGS="-DOM_NDEBUG -DNDEBUG -O2 -Wno-unused-function -Wno-unused-parameter -Wno-unused-variable -fomit-frame-pointer -fwrapv"
     105 if test "x${ENABLE_OPTIMIZATION}" != xno; then 
     106  OPTFLAGS="-DOM_NDEBUG -DNDEBUG -O2 -Wno-unused-function -Wno-unused-parameter -Wno-unused-variable -fomit-frame-pointer -fwrapv -fpermissive -fvisibility=default"
    107107  #  -O3 - crashes gcc???!!! 
    108108  AC_LANG_PUSH([C])
     
    117117  AX_APPEND_LINK_FLAGS([-fno-exceptions -fno-rtti -fpermissive])
    118118#  AX_APPEND_LINK_FLAGS([-fno-implicit-templates]) # see above :(
    119 #  AX_APPEND_LINK_FLAGS([-rdynamic])
     119  AX_APPEND_LINK_FLAGS([-rdynamic])
     120  AX_APPEND_LINK_FLAGS([-flat_namespace -Wl,-bind_at_load -Wl,-undefined,dynamic_lookup  -fpermissive -fvisibility=default])
    120121 fi
    121122
Note: See TracChangeset for help on using the changeset viewer.