Thread: BeOS fixes

BeOS fixes

From
"David Reid"
Date:
This removes the LDFLAGS from the template and adds an autoconf check
for the library.  not sure if this will cause problems on other
platforms, but if it does it can be easily fixed.  Also remove the
references to the GeekGadgets includes as the majority of users don't
have them installed and they foul the build process.  We can document
that adding them if you have them installed is a good idea.

Index: configure.in
===================================================================
RCS file: /home/projects/pgsql/cvsroot/pgsql/configure.in,v
retrieving revision 1.54
diff -u -u -r1.54 configure.in
--- configure.in        2000/10/07 14:55:16     1.54
+++ configure.in        2000/10/08 11:53:08
@@ -638,6 +638,7 @@
 AC_CHECK_LIB(PW,       main)
 AC_SEARCH_LIBS(crypt,  crypt)
 AC_CHECK_LIB(z,        inflate)
+AC_CHECK_LIB(bind,     main)

 if test "$with_krb4" = yes ; then
   AC_CHECK_LIB(des, [des_encrypt], [], [AC_MSG_ERROR([library \`des' is
required for Kerberos 4])])
Index: src/template/beos
===================================================================
RCS file: /home/projects/pgsql/cvsroot/pgsql/src/template/beos,v
retrieving revision 1.4
diff -u -u -r1.4 beos
--- src/template/beos   2000/10/07 18:59:12     1.4
+++ src/template/beos   2000/10/08 11:53:08
@@ -1,7 +1,4 @@
 AROPT=crs
 SHARED_LIB='-fpic -DPIC'
 CFLAGS='-O2'
-LDFLAGS='-lbind'
-SRCH_INC='/boot/apps/GeekGadgets/include'
-SRCH_LIB='/boot/apps/GeekGadgets/lib'
 DLSUFFIX=.so



Re: BeOS fixes

From
Bruce Momjian
Date:
Applied.

[ Charset ISO-8859-1 unsupported, converting... ]
> This removes the LDFLAGS from the template and adds an autoconf check
> for the library.  not sure if this will cause problems on other
> platforms, but if it does it can be easily fixed.  Also remove the
> references to the GeekGadgets includes as the majority of users don't
> have them installed and they foul the build process.  We can document
> that adding them if you have them installed is a good idea.
>
> Index: configure.in
> ===================================================================
> RCS file: /home/projects/pgsql/cvsroot/pgsql/configure.in,v
> retrieving revision 1.54
> diff -u -u -r1.54 configure.in
> --- configure.in        2000/10/07 14:55:16     1.54
> +++ configure.in        2000/10/08 11:53:08
> @@ -638,6 +638,7 @@
>  AC_CHECK_LIB(PW,       main)
>  AC_SEARCH_LIBS(crypt,  crypt)
>  AC_CHECK_LIB(z,        inflate)
> +AC_CHECK_LIB(bind,     main)
>
>  if test "$with_krb4" = yes ; then
>    AC_CHECK_LIB(des, [des_encrypt], [], [AC_MSG_ERROR([library \`des' is
> required for Kerberos 4])])
> Index: src/template/beos
> ===================================================================
> RCS file: /home/projects/pgsql/cvsroot/pgsql/src/template/beos,v
> retrieving revision 1.4
> diff -u -u -r1.4 beos
> --- src/template/beos   2000/10/07 18:59:12     1.4
> +++ src/template/beos   2000/10/08 11:53:08
> @@ -1,7 +1,4 @@
>  AROPT=crs
>  SHARED_LIB='-fpic -DPIC'
>  CFLAGS='-O2'
> -LDFLAGS='-lbind'
> -SRCH_INC='/boot/apps/GeekGadgets/include'
> -SRCH_LIB='/boot/apps/GeekGadgets/lib'
>  DLSUFFIX=.so
>
>
>


--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Re: BeOS fixes

From
Peter Eisentraut
Date:
David Reid writes:

> This removes the LDFLAGS from the template and adds an autoconf check
> for the library.

You need to check for a specific function in -lbind, not main().

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/