From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <479DAA2E.7000307@domain.hid> Date: Mon, 28 Jan 2008 11:10:54 +0100 From: Jan Kiszka MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010206060704090303010400" Subject: [Xenomai-core] [PATCH] consistent xeno-config output List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Xenomai-core@domain.hid This is a multi-part message in MIME format. --------------010206060704090303010400 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit I received some complaint that xeno-config [--verbose] does not match xeno-config --posix-ldflags. Here is a fix. Jan -- Siemens AG, Corporate Technology, CT SE 2 Corporate Competence Center Embedded Linux --------------010206060704090303010400 Content-Type: text/x-patch; name="consistify-xeno-config-output.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="consistify-xeno-config-output.patch" Index: xenomai/scripts/xeno-config.in =================================================================== --- xenomai/scripts/xeno-config.in (Revision 3451) +++ xenomai/scripts/xeno-config.in (Arbeitskopie) @@ -23,6 +23,23 @@ XENO_LIBRARY_DIR="${staging}${libdir}" unset prefix exec_prefix libdir datadir datarootdir pkgdatadir includedir +posix_ldflags () +{ + if test \! -r $XENO_POSIX_WRAPPERS; then + echo "POSIX support is not available" >&2 + exit 1 + fi + if test "$XENO_POSIX_FAST_WRAPPING" = "yes"; then + echo -n "-Wl,@$XENO_POSIX_WRAPPERS $XENO_POSIX_LDFLAGS" + else + wrappers=`cat $XENO_POSIX_WRAPPERS | \ + while read wrap_option symbol; do \ + echo -n "-Wl,$wrap_option,$symbol " ; \ + done` + echo -n "$wrappers $XENO_POSIX_LDFLAGS" + fi +} + usage () { cat <&2 - exit 1 - fi - if test "$XENO_POSIX_FAST_WRAPPING" = "yes"; then - echo "-Wl,@$XENO_POSIX_WRAPPERS $XENO_POSIX_LDFLAGS" - else - wrappers=`cat $XENO_POSIX_WRAPPERS | \ - while read wrap_option symbol; do \ - echo -n "-Wl,$wrap_option,$symbol " ; \ - done` - echo "$wrappers $XENO_POSIX_LDFLAGS" - fi + echo `posix_ldflags` ;; --lib*-dir|--libdir|--user-libdir) echo $XENO_LIBRARY_DIR --------------010206060704090303010400--