summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-05-02 06:34:25 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-05-02 06:34:25 (EDT)
commitb84ec9ddc074d3f753357dada0315478a2a1cbeb (patch)
treef65c04044f298db7bf0bdfbd375af29fa1623335
parentcd835e3cf83f34a097e57b6dc9c81dd709df5eef (diff)
Support cross building with opkhelper 1.0.0.
-rwxr-xr-xbuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/build b/build
index e00ceab..1700de2 100755
--- a/build
+++ b/build
@@ -5,7 +5,9 @@ opkg opkg-doc libopkg.1 libopkg.1-dbg libopkg.1-dev: opkg.buildstamp
.SILENT: opkg.buildstamp
opkg.buildstamp:
cd src && chmod a+x configure && \
- ./configure --prefix=/usr --disable-static \
+ ./configure --prefix=/usr \
+ --build=${OH_BUILD_ARCH_GNU} --host=${OH_HOST_ARCH_GNU} \
+ --disable-static \
--disable-curl --disable-ssl-curl --disable-gpg && \
make && make DESTDIR=$$(pwd)/../dest install
oh-strip -gl /usr/lib/libopkg.so.1.0.0