[oe-commits] Chris Larson : argp-standalone: build shared library also

git version control git at git.openembedded.org
Wed Jan 12 19:43:06 UTC 2011


Module: openembedded.git
Branch: master
Commit: 310773c9b0f9917a488bcd5e1a009150056556b7
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=310773c9b0f9917a488bcd5e1a009150056556b7

Author: Chris Larson <chris_larson at mentor.com>
Date:   Wed Jan 12 09:16:05 2011 -0700

argp-standalone: build shared library also

This applies a patch from FreeBSD to use libtool to build both shared and
static versions of libargp.

Signed-off-by: Chris Larson <chris_larson at mentor.com>

---

 .../argp-standalone/argp-standalone/libtool.patch  |   56 ++++++++++++++++++++
 recipes/argp-standalone/argp-standalone_1.3.bb     |    6 ++-
 2 files changed, 60 insertions(+), 2 deletions(-)

diff --git a/recipes/argp-standalone/argp-standalone/libtool.patch b/recipes/argp-standalone/argp-standalone/libtool.patch
new file mode 100644
index 0000000..c3498aa
--- /dev/null
+++ b/recipes/argp-standalone/argp-standalone/libtool.patch
@@ -0,0 +1,56 @@
+---
+ Makefile.am           |   10 +++++-----
+ configure.ac          |    1 +
+ testsuite/Makefile.am |    2 +-
+ 3 files changed, 7 insertions(+), 6 deletions(-)
+
+--- argp-standalone-1.3.orig/configure.ac
++++ argp-standalone-1.3/configure.ac
+@@ -21,6 +21,7 @@ AC_PROG_CC
+ AC_PROG_MAKE_SET
+ AC_PROG_RANLIB
+ AM_PROG_CC_STDC
++AC_PROG_LIBTOOL
+
+ if test "x$am_cv_prog_cc_stdc" = xno ; then
+   AC_ERROR([the C compiler doesn't handle ANSI-C])
+--- argp-standalone-1.3.orig/Makefile.am
++++ argp-standalone-1.3/Makefile.am
+@@ -21,9 +21,9 @@
+ AUTOMAKE_OPTIONS = foreign
+ SUBDIRS = . testsuite
+
+-LIBOBJS = @LIBOBJS@
++LTLIBOBJS = @LTLIBOBJS@
+
+-lib_LIBRARIES = libargp.a
++lib_LTLIBRARIES = libargp.la
+
+ # argp-test needs random(), which is not available on windows.
+ EXTRA_PROGRAMS = argp-test
+@@ -33,11 +33,11 @@ include_HEADERS=argp.h
+ EXTRA_DIST = mempcpy.c strchrnul.c strndup.c strcasecmp.c vsnprintf.c Versions
+
+ # Leaves out argp-fs-xinl.c and argp-xinl.c
+-libargp_a_SOURCES = argp-ba.c argp-eexst.c argp-fmtstream.c \
++libargp_la_SOURCES = argp-ba.c argp-eexst.c argp-fmtstream.c \
+		    argp-help.c argp-parse.c argp-pv.c \
+		    argp-pvh.c
+
+-libargp_a_LIBADD = $(LIBOBJS)
++libargp_la_LIBADD = $(LTLIBOBJS)
+
+-argp_test_LDADD = libargp.a
++argp_test_LDADD = libargp.la
+
+--- argp-standalone-1.3.orig/testsuite/Makefile.am
++++ argp-standalone-1.3/testsuite/Makefile.am
+@@ -7,7 +7,7 @@ TS_SH = ex1-test permute-test
+
+ TS_ALL = $(TS_PROGS) $(TS_SH)
+
+-LDADD = ../libargp.a
++LDADD = $(top_builddir)/libargp.la
+
+ EXTRA_DIST = $(TS_SH) run-tests
+ CLEANFILES = test.out
diff --git a/recipes/argp-standalone/argp-standalone_1.3.bb b/recipes/argp-standalone/argp-standalone_1.3.bb
index 79d219a..ba8d356 100644
--- a/recipes/argp-standalone/argp-standalone_1.3.bb
+++ b/recipes/argp-standalone/argp-standalone_1.3.bb
@@ -1,7 +1,9 @@
-DESCRIPTION = "Argp is an interface for parsing unix-style argument vectors. This is only needed for uclibc"
+DESCRIPTION = "A standalone version of argp, which is part of the GNU C Library."
 PRIORITY = "optional"
+PR = "r1"
 
-SRC_URI = "http://www.auto.tuwien.ac.at/~mkoegler/eib/argp-standalone-${PV}.tar.gz"
+SRC_URI = "http://www.auto.tuwien.ac.at/~mkoegler/eib/argp-standalone-${PV}.tar.gz \
+           file://libtool.patch"
 
 inherit autotools
 





More information about the Openembedded-commits mailing list