]> begriffs open source - libderp/blob - configure
More linker changes between Mac and Unix
[libderp] / configure
1 #!/bin/sh
2 set -eu
3
4 rm -f config.mk
5
6 # mac...think different :(
7 if [ "$(uname -s)" = Darwin ]
8 then
9         cat >> config.mk <<-EOF
10                 SO = dylib
11                 SOFLAGS = -dynamiclib -install_name "@rpath/libderp.dylib" -current_version \`cat VERSION\` -compatibility_version \`cut -d . -f 1 VERSION\`
12         EOF
13 else
14         cat >> config.mk <<-EOF
15                 SO = so
16                 SOFLAGS = -shared -Wl,-soname,libderp.so.\`cut -d . -f 1 VERSION\`
17         EOF
18 fi