aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2012-09-06 11:52:15 +0200
committerBjörn-Egil Dahlberg <[email protected]>2012-09-06 11:52:15 +0200
commitc282f35cf30d87b61baa30cc7b57ed8c858759ef (patch)
tree3f16a8c52e0ff97003385ad55a0ce77c874fd34a /erts
parentb97456526dc8f65931bf3ed609e9b233cbed2cae (diff)
downloadotp-c282f35cf30d87b61baa30cc7b57ed8c858759ef.tar.gz
otp-c282f35cf30d87b61baa30cc7b57ed8c858759ef.tar.bz2
otp-c282f35cf30d87b61baa30cc7b57ed8c858759ef.zip
Fix linking of shared libraries on OpenBSD
Reported-by: Matthew Dempsky
Diffstat (limited to 'erts')
-rw-r--r--erts/configure.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/erts/configure.in b/erts/configure.in
index 8d70a1b74a..6ad1951a4e 100644
--- a/erts/configure.in
+++ b/erts/configure.in
@@ -3575,6 +3575,11 @@ case $host_os in
DED_LDFLAGS="-m32 $DED_LDFLAGS"
fi
;;
+ openbsd*)
+ DED_LD="$CC"
+ DED_LD_FLAG_RUNTIME_LIBRARY_PATH="$CFLAG_RUNTIME_LIBRARY_PATH"
+ DED_LDFLAGS="-shared"
+ ;;
osf*)
# NOTE! Whitespace after -rpath is important.
DED_LD_FLAG_RUNTIME_LIBRARY_PATH="-rpath "