- make sure it doesn't try to link with libtool by using --disable-ltdl

- add the libtool patches to properly build shared libs on some arch.
This commit is contained in:
lebel 2001-07-16 14:48:46 +00:00
parent b578dcae7d
commit dbe05c2659
3 changed files with 36 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.2 2001/06/07 15:16:25 lebel Exp $
# $OpenBSD: Makefile,v 1.3 2001/07/16 14:48:46 lebel Exp $
COMMENT= "generic interface to spell checker libraries"
@ -23,7 +23,8 @@ MASTER_SITE_SUBDIR= pspell
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--enable-doc-dir=${PREFIX}/share/doc/pspell
--enable-doc-dir=${PREFIX}/share/doc/pspell \
--disable-ltdl
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-ltcf-c_sh,v 1.1 2001/07/16 14:48:46 lebel Exp $
--- ltcf-c.sh.orig Tue May 1 19:57:55 2001
+++ ltcf-c.sh Mon Jul 16 10:29:38 2001
@@ -454,10 +454,14 @@ else
;;
openbsd*)
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- hardcode_libdir_flag_spec='-R$libdir'
+ archive_cmds='$CC $pic_flag -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
+ archive_expsym_cmds='$CC $pic_flag -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
+ old_archive_cmds="$old_archive_cmds~"'$RANLIB $oldlib'
+ hardcode_libdir_flag_spec='${wl}-R$libdir'
hardcode_direct=yes
hardcode_shlibpath_var=no
+ remove_lgcc=yes
+ output_verbose_link_cmds='$CC $ac_cv_prog_cc_pic -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
;;
os2*)

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-ltconfig,v 1.1 2001/07/16 14:48:46 lebel Exp $
--- ltconfig.orig Tue May 1 19:57:55 2001
+++ ltconfig Mon Jul 16 10:29:34 2001
@@ -1239,6 +1239,8 @@ newsos6)
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
shlibpath_var=LD_LIBRARY_PATH
shlibpath_overrides_runpath=yes
+ deplib_check_method=pass_all
+ sys_lib_dlsearch_path_spec='/usr/lib /usr/local/lib /usr/X11R6/lib /usr/local/lib/qt2'
;;
openbsd*)