Skip to content

Commit

Permalink
fixed gcc dynamic library compiler flags for OS X
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@3652 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
ericmeyers committed Sep 26, 2008
1 parent a7d141a commit a4b3f11
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Compiler/runtime/systemimpl.c
Expand Up @@ -1564,7 +1564,11 @@ void System_5finit(void)
/* -fPIC needed on x86_64! */
set_linker("gcc -shared -export-dynamic -fPIC");
#else
#ifdef __APPLE_CC__
set_linker("gcc -single_module -dynamiclib -flat_namespace");
#else
set_linker("gcc -shared -export-dynamic");
#endif
#endif /* __sparc__ */

#if defined(__i386__) || defined(__x86_64__)
Expand Down

0 comments on commit a4b3f11

Please sign in to comment.