[augeas-devel] augeas: master - Build changes so that 'make' on Opensolaris 5.11 works

David Lutterkort lutter at fedoraproject.org
Mon Feb 2 05:57:08 UTC 2009


Gitweb:        http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=0add48b694e053a7969679b7a954026627be1882
Commit:        0add48b694e053a7969679b7a954026627be1882
Parent:        c38d171db94c7d11186cf0536ae43319f43526b7
Author:        David Lutterkort <lutter at redhat.com>
AuthorDate:    Fri Jan 30 14:52:11 2009 -0800
Committer:     David Lutterkort <lutter at redhat.com>
CommitterDate: Fri Jan 30 16:59:43 2009 -0800

Build changes so that 'make' on Opensolaris 5.11 works

The tests ('make check') still fail, because of trouble with
some of the shell scripts
---
 bootstrap              |    2 ++
 configure.ac           |    5 +++++
 src/Makefile.am        |    2 +-
 src/augeas_sym.version |    3 +--
 4 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/bootstrap b/bootstrap
index 53d8adc..6dc6a2a 100755
--- a/bootstrap
+++ b/bootstrap
@@ -59,11 +59,13 @@ gnulib_tool=$GNULIB_SRCDIR/gnulib-tool
 
 modules='
 argz
+fnmatch
 gitlog-to-changelog
 canonicalize-lgpl
 regex
 selinux-h
 strndup
+vasprintf
 '
 
 # Tell gnulib to:
diff --git a/configure.ac b/configure.ac
index 54ec16b..0b22600 100644
--- a/configure.ac
+++ b/configure.ac
@@ -75,6 +75,11 @@ AC_SUBST(AUGEAS_CFLAGS)
 AUGEAS_CHECK_READLINE
 AC_CHECK_FUNCS([open_memstream])
 
+VERSION_SCRIPT_FLAGS=-Wl,--version-script=
+$(/usr/bin/ld --help 2>&1 | grep -- --version-script >/dev/null) || \
+    VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,"
+AC_SUBST(VERSION_SCRIPT_FLAGS)
+
 gl_INIT
 
 AC_OUTPUT(Makefile \
diff --git a/src/Makefile.am b/src/Makefile.am
index 32fca89..a4516aa 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -24,7 +24,7 @@ libaugeas_la_SOURCES = augeas.h augeas.c pathx.c \
 	memory.h memory.c ref.h \
         syntax.c syntax.h parser.y builtin.c lens.c lens.h regexp.c \
 	transform.c ast.c get.c put.c list.h
-libaugeas_la_LDFLAGS = -Wl,--version-script=$(srcdir)/augeas_sym.version \
+libaugeas_la_LDFLAGS = $(VERSION_SCRIPT_FLAGS)$(srcdir)/augeas_sym.version \
         -version-info $(LIBAUGEAS_VERSION_INFO)
 libaugeas_la_LIBADD = liblexer.la libfa.la $(LIB_SELINUX) $(GNULIB)
 
diff --git a/src/augeas_sym.version b/src/augeas_sym.version
index 6db27b1..26c858c 100644
--- a/src/augeas_sym.version
+++ b/src/augeas_sym.version
@@ -7,11 +7,10 @@
       aug_insert;
       aug_rm;
       aug_mv;
-      aug_ls;
       aug_match;
       aug_save;
       aug_print;
-      /* Symbols with __ are private */
+      # Symbols with __ are private
       __aug_load_module_file;
     local: *;
 };




More information about the augeas-devel mailing list