iSCSI: open-iscsi patchwork: add -lslp to LDFLAGS, and properly call autoconf
authorFabio Erculiani <lxnay@sabayon.org>
Tue, 22 Mar 2011 18:23:59 +0000 (19:23 +0100)
committerFabio Erculiani <lxnay@sabayon.org>
Tue, 22 Mar 2011 18:23:59 +0000 (19:23 +0100)
gen_compile.sh
patches/iscsi/2.0-872/open-iscsi-2.0.872-slp.patch

index 00b5de94a9c7f3788975a28b2633b1e454020e8f..ec752ce05f6495ba5da4785a649616b046149f80 100755 (executable)
@@ -690,6 +690,9 @@ compile_iscsi() {
                # Only build userspace
                print_info 1 'iSCSI: >> Configuring userspace...'
                cd utils/open-isns || gen_die 'Could not enter open-isns dir'
+               # we currently have a patch that changes configure.ac
+               # once given patch is dropped, drop autoconf too
+               autoconf || gen_die 'Could not tweak open-iscsi configuration'
                ./configure --without-slp >> ${LOGFILE} 2>&1 || gen_die 'Could not configure userspace'
                cd ../.. || gen_die 'wtf?'
                MAKE=${UTILS_MAKE} compile_generic "user" ""
index 16658f3d9af0f87e73e27b5fe8928a70e2f4dffe..51ca3e5bb4552cf032c1ccb54f642b3e32824088 100644 (file)
@@ -1,11 +1,11 @@
---- open-iscsi-2.0-872.orig/utils/open-isns/configure.ac
-+++ open-iscsi-2.0-872/utils/open-isns/configure.ac
-@@ -79,7 +79,7 @@ AC_ARG_WITH(slp,
-                       WITH_SLP=$withval
+--- a/utils/open-isns/configure.ac
++++ b/utils/open-isns/configure.ac
+@@ -80,7 +80,7 @@ AC_ARG_WITH(slp,
                else
                        WITH_SLP=yes
--                      CPPFLAGS="$CPPFLAGS -I${withval}"
-+                      CPPFLAGS="$CPPFLAGS -I${withval} -lslp"
-                       LDFLAGS="$LDFLAGS -L${withval}"
+                       CPPFLAGS="$CPPFLAGS -I${withval}"
+-                      LDFLAGS="$LDFLAGS -L${withval}"
++                      LDFLAGS="$LDFLAGS -L${withval} -lslp"
                fi
        ]
+ )