Date: Friday, April 13, 2007 @ 20:44:54
  Author: marc
    Path: /cvsroot/carob/libmysequoia/ldtest

Modified: Makefile (1.3 -> 1.4) runtest.sh (1.1 -> 1.2)

Now testing with and without linking override lib to orig lib


------------+
 Makefile   |    6 +++---
 runtest.sh |   15 +++++++++++++--
 2 files changed, 16 insertions(+), 5 deletions(-)


Index: libmysequoia/ldtest/Makefile
diff -u libmysequoia/ldtest/Makefile:1.3 libmysequoia/ldtest/Makefile:1.4
--- libmysequoia/ldtest/Makefile:1.3    Fri Apr 13 20:34:10 2007
+++ libmysequoia/ldtest/Makefile        Fri Apr 13 20:44:54 2007
@@ -11,8 +11,8 @@
 liborig.so: orig.c
        ${CC} ${DOLIB} $? -o $@
 
-liboverride.so: override.c
-       ${CC} ${DOLIB} $? -o $@
+liboverride.so: override.c liborig.so
+       ${CC} ${DOLIB} -L. ${OVERLIBFLAGS} $? -o $@
 
 
 plugin.so: plugin.c liborig.so
@@ -20,7 +20,7 @@
 
 
 main: main.cpp
-       ${CXX} -L. ${MAINFLAGS} $? -o $@ -ldl
+       ${CXX} ${MAINFLAGS} $? -o $@
 
 
 run:
Index: libmysequoia/ldtest/runtest.sh
diff -u libmysequoia/ldtest/runtest.sh:1.1 libmysequoia/ldtest/runtest.sh:1.2
--- libmysequoia/ldtest/runtest.sh:1.1  Fri Apr 13 18:07:45 2007
+++ libmysequoia/ldtest/runtest.sh      Fri Apr 13 20:44:54 2007
@@ -1,5 +1,16 @@
 #!/bin/sh
 
-make clean all
-make clean all MAINFLAGS="-DDEEPBIND_ARG=0"
+
+
+case `uname -s`
+ in Linux)
+    SYSFLAGS="-ldl"
+  ;;
+esac
+
+
+for linkflags in " " "-lorig"
+do make clean all MAINFLAGS="${SYSFLAGS}" OVERLIBFLAGS="$linkflags"
+done
+
 

_______________________________________________
Carob-commits mailing list
[EMAIL PROTECTED]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to