From eea69687cd2f866de8649b2fa0cb44ce14fb4eac Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Mon, 22 Aug 2022 00:40:54 -0400 Subject: [PATCH] common/build-style/gnu-makefile.sh: define prefix, PREFIX for build --- common/build-style/gnu-makefile.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/build-style/gnu-makefile.sh b/common/build-style/gnu-makefile.sh index 04e407af255c..f81ef4e21db4 100644 --- a/common/build-style/gnu-makefile.sh +++ b/common/build-style/gnu-makefile.sh @@ -9,8 +9,10 @@ do_build() { CC="$CC" CXX="$CXX" LD="$LD" AR="$AR" RANLIB="$RANLIB" \ CPP="$CPP" AS="$AS" OBJCOPY="$OBJCOPY" OBJDUMP="$OBJDUMP" \ CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS" \ + PREFIX=/usr prefix=/usr \ ${makejobs} ${make_build_args} ${make_build_target} else + export PREFIX=/usr prefix=/usr ${make_cmd} ${makejobs} ${make_build_args} ${make_build_target} fi } @@ -37,5 +39,5 @@ do_install() { : ${make_cmd:=make} : ${make_install_target:=install} - ${make_cmd} STRIP=true PREFIX=/usr DESTDIR=${DESTDIR} ${make_install_args} ${make_install_target} + ${make_cmd} STRIP=true PREFIX=/usr prefix=/usr DESTDIR=${DESTDIR} ${make_install_args} ${make_install_target} }