From 43289e69d8986829c2cbb0e4f1d5f8bdb1e88b85 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 01 Jun 2019 00:10:39 -0400 Subject: build: Set PREFIX Also set macros at build time. --- diff --git a/build b/build index cb433a5..56adf30 100755 --- a/build +++ b/build @@ -1,18 +1,21 @@ #!/usr/bin/make -f +macros = \ + PREFIX='/usr' \ + LIBPATH='/usr/lib/$(OPK_HOST_ARCH)' \ + INSTALL_GROUP=0 + nop: @: build: CFLAGS='$(CFLAGS) -DLTM_DESC -DUSE_LTM' \ EXTRALIBS='-ltommath' \ - oh-autobuild -- -f makefile.shared + oh-autobuild -- -f makefile.shared $(macros) touch $@ install: build - oh-autoinstall -- -f makefile.shared \ - LIBPATH='/usr/lib/$(OPK_HOST_ARCH)' \ - INSTALL_GROUP=0 + oh-autoinstall -- -f makefile.shared $(macros) rm dest/usr/lib/$(OPK_HOST_ARCH)/libtomcrypt*.la oh-fixperms oh-strip -- cgit v0.9.1