pike.git/
src/
configure.in
Branch:
Tag:
Non-build tags
All tags
No tags
2001-09-10
2001-09-10 15:51:23 by Henrik Grubbström (Grubba) <grubba@grubba.org>
ecf155090ffa23f3c0df33db839eab404291aa67 (
16
lines) (+
14
/-
2
)
[
Show
|
Annotate
]
Branch:
7.9
Added some support for dyld (MacOS X).
Rev: src/configure.in:1.546
Rev: src/dynamic_load.c:1.54
1:
-
AC_REVISION("$Id: configure.in,v 1.
545
2001/09/
02
01
:
36
:
14
marcus
Exp $")
+
AC_REVISION("$Id: configure.in,v 1.
546
2001/09/
10
15
:
51
:
22
grubba
Exp $")
AC_INIT(interpret.c) AC_CONFIG_HEADER(machine.h)
1914:
AC_CHECK_HEADERS(sys/rusage.h time.h sys/time.h sys/types.h unistd.h stdlib.h \ memory.h values.h string.h strings.h fcntl.h sys/filio.h sys/sockio.h crypt.h \ locale.h sys/select.h net/socket.h sys/mman.h setjmp.h \
-
limits.h pthread.h crt/signal.h sys/id.h \
+
limits.h pthread.h crt/signal.h sys/id.h
mach-o/dyld.h
\
thread.h dlfcn.h dld.h dl.h sys/times.h sched.h sys/procfs.h sys/param.h \ winsock.h sys/ioct.h sys/socket.h malloc.h netinet/in.h sys/wait.h winbase.h \ grp.h pwd.h passwd.h group.h winsock2.h signal.h sys/file.h poll.h sys/poll.h \
5299:
fi fi ;;
+
Darwin*)
+
LDSHARED="ld -bundle -bind_at_load -undefined suppress -ldylib1.o"
+
;;
IRIX*) if test "$GCC" = yes ; then # egcs defaults to building -n32 objects
5358:
*) CCSHARED="";; esac ;;
+
Darwin*)
+
CCSHARED="-fPIC"
+
;;
Solaris*) # The Image module runs out of symbol reference space unless we # use the large PIC model:
5371:
esac else case "$pike_cv_sys_os" in
+
Darwin*)
+
CCSHARED="-fPIC"
+
;;
IRIX*) AC_SYS_COMPILER_FLAG(-share,cc_shared,CCSHARED) ;;
5410:
LINKFORSHARED="-Wl,-bexpall -Wl,-brtl" fi ;;
+
Darwin*) LINKFORSHARED="-dynamic";;
hp*|HP*) LINKFORSHARED="-Wl,-E";; Linux*) LINKFORSHARED="-rdynamic";; BSD/OS*)
5449:
LINKFORSHARED="-Wl,-bexpall -Wl,-brtl" fi ;;
+
Darwin*) LINKFORSHARED="-dynamic";;
hp*|HP*) LINKFORSHARED="-Wl,-E";; Linux*) LINKFORSHARED="-rdynamic";; GNU*) LINKFORSHARED="-rdynamic";;