SHARED_LIBS, USE_LIBTOOL
This commit is contained in:
parent
5537db5142
commit
c126f5d891
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.24 2005/09/23 20:44:00 ian Exp $
|
||||
# $OpenBSD: Makefile,v 1.25 2006/01/10 05:29:12 bernd Exp $
|
||||
#
|
||||
# If you are getting compile errors like these:
|
||||
# Undefined symbol `_postOutOfMemory' referenced from text segment
|
||||
@ -8,11 +8,34 @@
|
||||
COMMENT= "Transvirtual's Java JDK1.1 compiler, runtime and libs"
|
||||
|
||||
DISTNAME= kaffe-1.0.6
|
||||
PKGNAME= ${DISTNAME}p0
|
||||
SHARED_LIBS= awt 0.0 \
|
||||
awt-1.0.6 0.0 \
|
||||
io 0.0 \
|
||||
io-1.0.6 0.0 \
|
||||
kaffevm 0.0 \
|
||||
kaffevm-1.0.6 0.0 \
|
||||
kaffexprof 0.0 \
|
||||
kaffexprof-1.0.6 0.0 \
|
||||
management 0.0 \
|
||||
management-1.0.6 0.0 \
|
||||
math 0.0 \
|
||||
math-1.0.6 0.0 \
|
||||
microsoft 0.0 \
|
||||
microsoft-1.0.6 0.0 \
|
||||
native 0.0 \
|
||||
native-1.0.6 0.0 \
|
||||
net 0.0 \
|
||||
net-1.0.6 0.0 \
|
||||
security 0.0 \
|
||||
security-1.0.6 0.0 \
|
||||
zip 0.0 \
|
||||
zip-1.0.6 0.0
|
||||
|
||||
CATEGORIES= lang
|
||||
|
||||
MASTER_SITES= ftp://ftp.kaffe.org/pub/kaffe/
|
||||
|
||||
BUILD_DEPENDS= ::devel/libtool
|
||||
# Note that "lesstif" is NOT a dependency: Kaffe has its own, Motifless, AWT.
|
||||
# You must have the X11 client packages installed; no good way to DEPEND this
|
||||
# (if you don't, I think it will build a command-line-only Java--untested).
|
||||
@ -36,6 +59,8 @@ PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
WANTLIB= c m z X11 SM Xext ICE
|
||||
|
||||
USE_LIBTOOL= Yes
|
||||
|
||||
# build/configuration variables
|
||||
CONFIGURE_STYLE=gnu
|
||||
CONFIGURE_ARGS+=${CONFIGURE_SHARED} --enable-static
|
||||
|
25
lang/kaffe/patches/patch-configure
Normal file
25
lang/kaffe/patches/patch-configure
Normal file
@ -0,0 +1,25 @@
|
||||
$OpenBSD: patch-configure,v 1.1 2006/01/10 05:29:12 bernd Exp $
|
||||
--- configure.orig Mon Jul 24 21:47:29 2000
|
||||
+++ configure Tue Jan 10 05:39:34 2006
|
||||
@@ -7498,17 +7498,17 @@ done
|
||||
|
||||
|
||||
if test "$dynamic_libraries" = no; then
|
||||
- KLIBFLAGS=-static
|
||||
+ KLIBFLAGS="-static -version-info 0:0:0"
|
||||
else
|
||||
- KLIBFLAGS=
|
||||
+ KLIBFLAGS="-version-info 0:0:0"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
if test "$vm_dynamic_library" = no; then
|
||||
- KVMLIBFLAGS=-static
|
||||
+ KVMLIBFLAGS="-static -version-info 0:0:0"
|
||||
else
|
||||
- KVMLIBFLAGS=
|
||||
+ KVMLIBFLAGS="-version-info 0:0:0"
|
||||
fi
|
||||
|
||||
|
12
lang/kaffe/patches/patch-kaffe_xprof_Makefile_in
Normal file
12
lang/kaffe/patches/patch-kaffe_xprof_Makefile_in
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-kaffe_xprof_Makefile_in,v 1.1 2006/01/10 05:29:12 bernd Exp $
|
||||
--- kaffe/xprof/Makefile.in.orig Tue Jan 10 05:44:25 2006
|
||||
+++ kaffe/xprof/Makefile.in Tue Jan 10 05:45:06 2006
|
||||
@@ -142,7 +142,7 @@ INCLUDES = -I$(top_srcdir)/kaffe/kaffevm
|
||||
|
||||
lib_LTLIBRARIES = libkaffexprof.la
|
||||
|
||||
-libkaffexprof_la_LDFLAGS = -export-dynamic -release $(KVER)
|
||||
+libkaffexprof_la_LDFLAGS = $(KLIBFLAGS) -export-dynamic -release $(KVER)
|
||||
libkaffexprof_la_DEPENDENCIES = \
|
||||
$(LIBLTDL)
|
||||
|
@ -1,76 +0,0 @@
|
||||
$OpenBSD: patch-ltconfig,v 1.1 2003/05/23 05:03:46 pvalchev Exp $
|
||||
--- ltconfig.orig Thu Feb 24 19:28:35 2000
|
||||
+++ ltconfig Mon May 19 19:19:34 2003
|
||||
@@ -962,7 +962,9 @@ cygwin* | mingw*)
|
||||
with_gnu_ld=no
|
||||
fi
|
||||
;;
|
||||
-
|
||||
+openbsd*)
|
||||
+ with_gnu_ld=no
|
||||
+ ;;
|
||||
esac
|
||||
|
||||
ld_shlibs=yes
|
||||
@@ -1292,10 +1294,28 @@ else
|
||||
;;
|
||||
|
||||
openbsd*)
|
||||
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
||||
- hardcode_libdir_flag_spec='-R$libdir'
|
||||
- hardcode_direct=yes
|
||||
- hardcode_shlibpath_var=no
|
||||
+ case "$host_os" in
|
||||
+ openbsd*)
|
||||
+ archive_cmds="$archive_cmds~\$RANLIB -t \$lib"
|
||||
+ postinstall_cmds='$RANLIB -t $lib'
|
||||
+ ;;
|
||||
+ *)
|
||||
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
||||
+ postinstall_cmds='$RANLIB $lib'
|
||||
+ ;;
|
||||
+ esac
|
||||
+ case "$host_cpu" in
|
||||
+ m88k|hppa|vax)
|
||||
+ ld_shlibs=no
|
||||
+ ;;
|
||||
+ *)
|
||||
+ hardcode_direct=yes
|
||||
+ hardcode_shlibpath_var=no
|
||||
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linkopts'
|
||||
+ hardcode_libdir_flag_spec='${wl}-R$libdir'
|
||||
+ export_dynamic_flag_spec='${wl}-E'
|
||||
+ ;;
|
||||
+ esac
|
||||
;;
|
||||
|
||||
os2*)
|
||||
@@ -1684,9 +1704,25 @@ netbsd*)
|
||||
|
||||
openbsd*)
|
||||
version_type=sunos
|
||||
- if test "$with_gnu_ld" = yes; then
|
||||
- need_lib_prefix=no
|
||||
- need_version=no
|
||||
+ need_lib_prefix=no
|
||||
+ need_version=yes
|
||||
+ sys_lib_search_path_spec="/usr/lib"
|
||||
+ sys_lib_dlsearch_path_spec="/usr/lib /usr/local/lib"
|
||||
+ file_magic_cmd=/usr/bin/file
|
||||
+ file_magic_test_file=`echo /usr/lib/libc.so.*`
|
||||
+ if test "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
||||
+ deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
|
||||
+ case "$host_os" in
|
||||
+ openbsd2.[89] | openbsd2.[89].*)
|
||||
+ shlibpath_overrides_runpath=no
|
||||
+ ;;
|
||||
+ *)
|
||||
+ shlibpath_overrides_runpath=yes
|
||||
+ ;;
|
||||
+ esac
|
||||
+ else
|
||||
+ deplibs_check_method='file_magic OpenBSD.* shared library'
|
||||
+ shlibpath_overrides_runpath=yes
|
||||
fi
|
||||
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
|
||||
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
@ -1,90 +0,0 @@
|
||||
$OpenBSD: patch-ltmain_sh,v 1.1 2003/05/23 05:03:46 pvalchev Exp $
|
||||
--- ltmain.sh.orig Thu Feb 24 19:28:35 2000
|
||||
+++ ltmain.sh Mon May 19 16:23:11 2003
|
||||
@@ -999,6 +999,17 @@ compiler."
|
||||
# These systems don't actually have c library (as such)
|
||||
continue
|
||||
;;
|
||||
+ *-*-openbsd*)
|
||||
+ # Do not include libc due to us having libc/libc_r.
|
||||
+ continue
|
||||
+ ;;
|
||||
+ esac
|
||||
+ elif test "$arg" = "-lc_r"; then
|
||||
+ case "$host" in
|
||||
+ *-*-openbsd*)
|
||||
+ # Do not include libc_r directly, use -pthread flag.
|
||||
+ continue
|
||||
+ ;;
|
||||
esac
|
||||
elif test "$arg" = "-lm"; then
|
||||
case "$host" in
|
||||
@@ -1012,6 +1023,17 @@ compiler."
|
||||
continue
|
||||
;;
|
||||
|
||||
+ -pthread)
|
||||
+ case $host in
|
||||
+ *-*-openbsd*)
|
||||
+ deplibs="$deplibs $arg"
|
||||
+ ;;
|
||||
+ *)
|
||||
+ continue
|
||||
+ ;;
|
||||
+ esac
|
||||
+ ;;
|
||||
+
|
||||
-module)
|
||||
module=yes
|
||||
continue
|
||||
@@ -1031,6 +1053,9 @@ compiler."
|
||||
$echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
|
||||
fast_install=no
|
||||
;;
|
||||
+ *-*-openbsd*)
|
||||
+ # Do not include libc due to us having libc/libc_r.
|
||||
+ ;;
|
||||
*)
|
||||
no_install=yes
|
||||
;;
|
||||
@@ -4200,40 +4225,6 @@ relink_command=\"$relink_command\""
|
||||
# Exit here if they wanted silent mode.
|
||||
test "$show" = : && exit 0
|
||||
|
||||
- echo "----------------------------------------------------------------------"
|
||||
- echo "Libraries have been installed in:"
|
||||
- for libdir in $libdirs; do
|
||||
- echo " $libdir"
|
||||
- done
|
||||
- echo
|
||||
- echo "If you ever happen to want to link against installed libraries"
|
||||
- echo "in a given directory, LIBDIR, you must either use libtool, and"
|
||||
- echo "specify the full pathname of the library, or use \`-LLIBDIR'"
|
||||
- echo "flag during linking and do at least one of the following:"
|
||||
- if test -n "$shlibpath_var"; then
|
||||
- echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
|
||||
- echo " during execution"
|
||||
- fi
|
||||
- if test -n "$runpath_var"; then
|
||||
- echo " - add LIBDIR to the \`$runpath_var' environment variable"
|
||||
- echo " during linking"
|
||||
- fi
|
||||
- if test -n "$hardcode_libdir_flag_spec"; then
|
||||
- libdir=LIBDIR
|
||||
- eval flag=\"$hardcode_libdir_flag_spec\"
|
||||
-
|
||||
- echo " - use the \`$flag' linker flag"
|
||||
- fi
|
||||
- if test -n "$admincmds"; then
|
||||
- echo " - have your system administrator run these commands:$admincmds"
|
||||
- fi
|
||||
- if test -f /etc/ld.so.conf; then
|
||||
- echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
|
||||
- fi
|
||||
- echo
|
||||
- echo "See any operating system documentation about shared libraries for"
|
||||
- echo "more information, such as the ld(1) and ld.so(8) manual pages."
|
||||
- echo "----------------------------------------------------------------------"
|
||||
exit 0
|
||||
;;
|
||||
|
@ -1,23 +1,23 @@
|
||||
@comment $OpenBSD: PFRAG.shared,v 1.4 2004/09/15 19:16:08 espie Exp $
|
||||
@lib lib/kaffe/libawt-1.0.6.so.0.0
|
||||
@lib lib/kaffe/libawt.so.0.0
|
||||
@lib lib/kaffe/libio-1.0.6.so.0.0
|
||||
@lib lib/kaffe/libio.so.0.0
|
||||
@lib lib/kaffe/libmanagement-1.0.6.so.0.0
|
||||
@lib lib/kaffe/libmanagement.so.0.0
|
||||
@lib lib/kaffe/libmath-1.0.6.so.0.0
|
||||
@lib lib/kaffe/libmath.so.0.0
|
||||
@lib lib/kaffe/libmicrosoft-1.0.6.so.0.0
|
||||
@lib lib/kaffe/libmicrosoft.so.0.0
|
||||
@lib lib/kaffe/libnative-1.0.6.so.0.0
|
||||
@lib lib/kaffe/libnative.so.0.0
|
||||
@lib lib/kaffe/libnet-1.0.6.so.0.0
|
||||
@lib lib/kaffe/libnet.so.0.0
|
||||
@lib lib/kaffe/libsecurity-1.0.6.so.0.0
|
||||
@lib lib/kaffe/libsecurity.so.0.0
|
||||
@lib lib/kaffe/libzip-1.0.6.so.0.0
|
||||
@lib lib/kaffe/libzip.so.0.0
|
||||
@lib lib/libkaffevm-1.0.6.so.0.0
|
||||
@lib lib/libkaffevm.so.0.0
|
||||
@lib lib/libkaffexprof-1.0.6.so.0.0
|
||||
@lib lib/libkaffexprof.so.0.0
|
||||
@comment $OpenBSD: PFRAG.shared,v 1.5 2006/01/10 05:29:12 bernd Exp $
|
||||
@lib lib/kaffe/libawt-1.0.6.so.${LIBawt-1.0.6_VERSION}
|
||||
@lib lib/kaffe/libawt.so.${LIBawt_VERSION}
|
||||
@lib lib/kaffe/libio-1.0.6.so.${LIBio-1.0.6_VERSION}
|
||||
@lib lib/kaffe/libio.so.${LIBio_VERSION}
|
||||
@lib lib/kaffe/libmanagement-1.0.6.so.${LIBmanagement-1.0.6_VERSION}
|
||||
@lib lib/kaffe/libmanagement.so.${LIBmanagement_VERSION}
|
||||
@lib lib/kaffe/libmath-1.0.6.so.${LIBmath-1.0.6_VERSION}
|
||||
@lib lib/kaffe/libmath.so.${LIBmath_VERSION}
|
||||
@lib lib/kaffe/libmicrosoft-1.0.6.so.${LIBmicrosoft-1.0.6_VERSION}
|
||||
@lib lib/kaffe/libmicrosoft.so.${LIBmicrosoft_VERSION}
|
||||
@lib lib/kaffe/libnative-1.0.6.so.${LIBnative-1.0.6_VERSION}
|
||||
@lib lib/kaffe/libnative.so.${LIBnative_VERSION}
|
||||
@lib lib/kaffe/libnet-1.0.6.so.${LIBnet-1.0.6_VERSION}
|
||||
@lib lib/kaffe/libnet.so.${LIBnet_VERSION}
|
||||
@lib lib/kaffe/libsecurity-1.0.6.so.${LIBsecurity-1.0.6_VERSION}
|
||||
@lib lib/kaffe/libsecurity.so.${LIBsecurity_VERSION}
|
||||
@lib lib/kaffe/libzip-1.0.6.so.${LIBzip-1.0.6_VERSION}
|
||||
@lib lib/kaffe/libzip.so.${LIBzip_VERSION}
|
||||
@lib lib/libkaffevm-1.0.6.so.${LIBkaffevm-1.0.6_VERSION}
|
||||
@lib lib/libkaffevm.so.${LIBkaffevm_VERSION}
|
||||
@lib lib/libkaffexprof-1.0.6.so.${LIBkaffexprof-1.0.6_VERSION}
|
||||
@lib lib/libkaffexprof.so.${LIBkaffexprof_VERSION}
|
||||
|
Loading…
Reference in New Issue
Block a user