diff options
author | Jamie Lenehan <lenehan@twibble.org> | 2006-11-16 03:48:58 +0000 |
---|---|---|
committer | Jamie Lenehan <lenehan@twibble.org> | 2006-11-16 03:48:58 +0000 |
commit | a8d0f5c6c8a7c0537271079c089ed963a137f4a2 (patch) | |
tree | 7c1ed0edb04739b24d5abe2827870e954bde79cd /packages/net-snmp/net-snmp_5.1.2.bb | |
parent | 180f2d1af110cf386e8b3fc0ba80633026d5a904 (diff) |
net-snmp 5.1.2: Use the new siteinfo stuff to determine the endianess and
set the appropriate flag rather then manually processing the site file
contents to do this.
Diffstat (limited to 'packages/net-snmp/net-snmp_5.1.2.bb')
-rw-r--r-- | packages/net-snmp/net-snmp_5.1.2.bb | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/packages/net-snmp/net-snmp_5.1.2.bb b/packages/net-snmp/net-snmp_5.1.2.bb index 35743337a1..f0330ed149 100644 --- a/packages/net-snmp/net-snmp_5.1.2.bb +++ b/packages/net-snmp/net-snmp_5.1.2.bb @@ -2,7 +2,7 @@ DESCRIPTION = "Various tools relating to the Simple Network Management Protocol" HOMEPAGE = "http://www.net-snmp.org/" LICENSE = "BSD" DEPENDS = "openssl" -PR = "r1" +PR = "r2" SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.tar.gz \ file://uclibc-fix.patch;patch=1 \ @@ -17,15 +17,8 @@ EXTRA_OECONF = "--enable-shared --disable-manuals" EXTRA_OEMAKE = "INSTALL_PREFIX=${D}" do_configure() { - # endianness fun... inspired by openssl.inc - . ${CONFIG_SITE} - if [ "x$ac_cv_c_bigendian" = "xyes" -o "x$ac_cv_c_littleendian" = "xno" ]; then - ENDIANESS=" --with-endianness=big" - elif [ "x$ac_cv_c_littleendian" = "xyes" -o "x$ac_cv_c_bigendian" = "xno" ]; then - ENDIANESS=" --with-endianness=little" - else - oefatal do_configure cannot determine endianess - fi + # Additional flag based on target endiness (see siteinfo.bbclass) + ENDIANESS="${@base_conditional('SITEINFO_ENDIANESS', 'le', '--with-endianness=little', '--with-endianness=big', d)}" oenote Determined endianess as: $ENDIANESS oe_runconf $ENDIANESS } |