]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* demo/foo.h: use LT_PARAMS instead of LTDL_PARAMS (this is not libltdl)
authorThomas Tanner <tanner@ffii.org>
Wed, 30 Jun 1999 12:50:59 +0000 (12:50 +0000)
committerThomas Tanner <tanner@gmx.de>
Wed, 30 Jun 1999 12:50:59 +0000 (12:50 +0000)
* tests/build-relink.test: also check for hardcode_into_libs = yes,
  if set, we need to relink at install-time

ChangeLog
demo/foo.h
tests/build-relink.test

index d0acb6ff5f4e11abdaa6bd299a8d4bc9a2ed0ab3..91b5632ee2c89193c8a6bbd4b3a8e8050cdc8165 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1999-06-30  Thomas Tanner  <tanner@ffii.org>
+
+       * demo/foo.h: use LT_PARAMS instead of LTDL_PARAMS (this is not libltdl)
+       * tests/build-relink.test: also check for hardcode_into_libs = yes,
+         if set, we need to relink at install-time
+
 1999-06-29  Thomas Tanner  <tanner@ffii.org>
 
        * NEWS: mention -no-fast-install, rename dummy to force
index 9cc61950fcc53a122f489ccff007ab84bba6b6a4..6d4fee709d542486c2ff1f61179254ba05287a5f 100644 (file)
@@ -50,10 +50,10 @@ USA. */
    compilers can issue warnings about type mismatches. */
 #undef LTDL_PARAMS
 #if defined (__STDC__) || defined (_AIX) || (defined (__mips) && defined (_SYSTYPE_SVR4)) || defined(__CYGWIN32__) || defined(__cplusplus)
-# define LTDL_PARAMS(protos) protos
+# define LT_PARAMS(protos) protos
 # define lt_ptr_t     void*
 #else
-# define LTDL_PARAMS(protos) ()
+# define LT_PARAMS(protos) ()
 # define lt_ptr_t     char*
 #endif
 
@@ -82,8 +82,8 @@ USA. */
 
 /* Declarations.  Note the wonderful use of the above macros. */
 __BEGIN_DECLS
-int foo LTDL_PARAMS((void));
-int hello LTDL_PARAMS((void));
+int foo LT_PARAMS((void));
+int hello LT_PARAMS((void));
 EXTERN int nothing;
 __END_DECLS
 
index 515678eba9fa152f45d6ccb6bf0dee8b71b79e1b..dd5b4856ecc549f56d173773c9cb6a6683c99ae1 100755 (executable)
@@ -58,6 +58,13 @@ if test "$hardcode_direct" = NONE; then
   exit 1
 fi
 
+hardcode_into_libs=NONE
+eval `egrep -e '^hardcode_into_libs=' ./libtool 2>/dev/null`
+if test "$hardcode_into_libs" = NONE; then
+  echo "hardcode_into_libs not set in ../demo/libtool" 1>&2
+  exit 1
+fi
+
 ./hell # so that it links on-demand if needed
 
 echo "removing libhello.la from ../demo"
@@ -92,7 +99,8 @@ else
   echo "Failed, as expected"
 fi
 
-if test "x$hardcode_action" = xrelink; then
+if test "x$hardcode_action" = xrelink ||
+   test "x$hardcode_into_libs" = xyes; then
   echo "= Exiting: install-time relinking is required"
   exit 0
 fi