The Samba-Bugzilla – Attachment 5923 Details for
Bug 7244
libcups linking broken on OpenBSD Possibly other OS's
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Share Library Handling on OpenBSD
patch-configure_in.diff (text/plain), 2.16 KB, created by
Ian McWilliam (mail address dead)
on 2010-08-24 06:46:15 UTC
(
hide
)
Description:
Share Library Handling on OpenBSD
Filename:
MIME Type:
Creator:
Ian McWilliam (mail address dead)
Created:
2010-08-24 06:46:15 UTC
Size:
2.16 KB
patch
obsolete
>$OpenBSD: patch-configure_in,v 1.16 2010/07/14 07:20:18 sthen Exp $ >--- configure.in.orig Fri Jun 18 08:01:04 2010 >+++ configure.in Wed Jul 7 22:31:10 2010 >@@ -761,7 +761,7 @@ if test x$enable_cups != xno; then > ac_save_PRINT_LIBS=$PRINT_LIBS > CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`" > LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`" >- PRINT_LIBS="$PRINT_LIBS -lcups" >+ PRINT_LIBS="$PRINT_LIBS `$CUPS_CONFIG --libs`" > AC_CHECK_HEADERS(cups/cups.h cups/language.h) > if test x"$ac_cv_header_cups_cups_h" = xyes -a \ > x"$ac_cv_header_cups_language_h" = xyes; then >@@ -1559,8 +1559,7 @@ DSO_EXPORTS="" > ;; > *openbsd*) BLDSHARED="true" > LDSHFLAGS="-shared" >- DYNEXP="-Wl,-Bdynamic" >- SONAMEFLAG="-Wl,-soname," >+ DYNEXP="-Wl,--export-dynamic" > PICFLAG="-fPIC" > AC_DEFINE(STAT_ST_BLOCKSIZE,512,[The size of a block]) > AC_DEFINE(BROKEN_GETGRNAM,1,[Does getgrnam work correctly]) >@@ -1704,38 +1703,6 @@ if test x"$BLDSHARED" = x"true" ; then > fi > > AC_MSG_RESULT($BLDSHARED) >- >-saved_before_as_needed_ldflags="$LDFLAGS" >-for flags in "-Wl,--as-needed" "-Wl,-z,ignore" "-z ignore" ; do >- saved_ldflags="$LDFLAGS" >- AC_MSG_CHECKING([if $flags works]) >- LDFLAGS="$flags $saved_ldflags" >- AC_TRY_LINK([],[], >- [AC_MSG_RESULT([yes]) >- LD_AS_NEEDED_FLAG=$flags >- ld_as_needed_flag_found=yes], >- AC_MSG_RESULT([no])) >- LDFLAGS="$LD_AS_NEEDED_FLAG $saved_ldflags" >- test x"$ld_as_needed_flag_found" = xyes && break >-done >- >-# check if we have to disable LD_AS_NEEDED_FLAG: >-# On some systems for a veriety of reasons linking with >-# -Wl,--as-needed -lreadline -lncurses fails >-# we have to retest, if these combination is detected before. >-# Bugzilla #7209 >- >-if test x$ac_cv_lib_readline_rl_callback_handler_install = xyes ; then >- if test x$ld_as_needed_flag_found = xyes ; then >- AC_MSG_CHECKING([if $LD_AS_NEEDED_FLAG works with readline]) >- # try if check no fails >- save_LIBS=$LIBS >- LIBS="$LIBS $TERMLIBS" >- AC_TRY_LINK([], [rl_callback_handler_install();], [AC_MSG_RESULT([yes])],[ AC_MSG_RESULT([no]); LDFLAGS="$saved_before_as_needed_ldflags"]) >- LIBS="$save_LIBS" >- fi >-fi >- > > > # for historical reasons almost all linkers don't complain about unresolved
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 7244
:
5923