]>
git.saurik.com Git - wxWidgets.git/blob - distrib/mac/shared-ld-sh
2 #-----------------------------------------------------------------------------
3 #-- Name: distrib/mac/shared-ld-sh
4 #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
5 #-- Author: Gilles Depeyrot
7 #-- Created: 05.05.2002
9 #-- Copyright: (c) 2002 Gilles Depeyrot
10 #-- Licence: wxWindows licence
11 #-----------------------------------------------------------------------------
17 while test $# -gt 0; do
24 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
25 # collect these options and values
30 -l*|-L*|-flat_namespace)
31 # collect these options
40 echo "shared-ld: unhandled option '$1'"
45 # collect object files
50 echo "shared-ld: unhandled argument '$1'"
59 # Link one module containing all the others
61 if test $verbose = 1; then
62 echo "c++ -r -keep_private_externs -nostdlib $objects -o master.$$.o"
64 c
++ -r -keep_private_externs -nostdlib $objects -o master.$$.o
66 if test $status != 0; then
71 # Link the shared library from the single module created
73 if test $verbose = 1; then
74 echo "cc -dynamiclib master.$$.o $args"
76 c
++ -dynamiclib master.$$.o
$args
78 if test $status != 0; then
83 # Remove intermediate module