comerr: Fix a couple of libtool problems
authorSimon Wilkinson <sxw@your-file-system.com>
Fri, 7 Sep 2012 12:51:29 +0000 (13:51 +0100)
committerDerrick Brashear <shadow@your-file-system.com>
Fri, 7 Sep 2012 14:37:27 +0000 (07:37 -0700)
The comerr libtool patch was submitted before buildbot had a chance
to verify it. Fix a couple of problems that buildbot identified:

*) On AIX liboafs_comerr needs to link against roken
*) On OpenSuSe the LWP CC command has a space in it, so needs to
   be quoted before being passed in to lwptool

Change-Id: I885099f57ef670ed58d532162b1cb70316744b28
Reviewed-on: http://gerrit.openafs.org/8059
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>

src/comerr/Makefile.in
src/config/Makefile.config.in

index 794d7af..4be49b0 100644 (file)
@@ -11,7 +11,7 @@ include @TOP_OBJDIR@/src/config/Makefile.lwp
 
 LT_objs = error_msg.lo et_name.lo com_err.lo AFS_component_version_number.lo
 LT_deps = $(top_builddir)/src/opr/liboafs_opr.la
-LT_libs = $(MT_LIBS)
+LT_libs = $(LIB_roken) $(MT_LIBS)
 
 all: compile_et ${TOP_INCDIR}/afs/com_err.h ${TOP_INCDIR}/afs/error_table.h \
      ${TOP_INCDIR}/afs/mit-sipb-cr.h ${TOP_LIBDIR}/libafscom_err.a \
index 99756e9..ecd15e9 100644 (file)
@@ -234,7 +234,7 @@ LT_CCRULE=$(RUN_CC) $(LIBTOOL) --quiet --mode=compile --tag=CC \
 
 # Libtool - for objects that are built for both pthread and lwp libraries
 LTLWP_CCRULE=$(RUN_CC) $(LWPTOOL) --mode compile \
-                --lwpcc $(CCOBJ) \
+                --lwpcc "$(CCOBJ)" \
                 --mtcc "$(LIBTOOL) --quiet --mode=compile --tag=CC $(MT_CC) $(MT_CFLAGS)" \
                 -o $@ \
                 -- \