Skip to content

Commit

Permalink
dev-util/cmt: Respect environment CXXFLAGS and LDFLAGS.
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Benda Xu <[email protected]>
  • Loading branch information
heroxbd committed Dec 16, 2019
1 parent cc2e210 commit 83759ac
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dev-util/cmt/cmt-1.26_p20160527.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ RDEPEND="${DEPEND}

S="${WORKDIR}/CMT/${CMT_PV}"

PATCHES=( "${FILESDIR}"/${PN}-1.26_p20160527-ldflags.patch )

src_configure() {
cd "${S}"/mgr || die
./INSTALL || die
Expand Down
29 changes: 29 additions & 0 deletions dev-util/cmt/files/cmt-1.26_p20160527-ldflags.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
--- a/mgr/requirements 2014-01-06 22:40:25.000000000 +0800
+++ b/mgr/requirements 2019-12-09 22:33:53.375723322 +0800
@@ -157,7 +157,7 @@
macro cdebugflags "" \
debug "$(debug_option)"

-macro cflags "" \
+macro cflags "${CFLAGS}" \
LynxOS-VGPW2 "-X" \
insure "-std1" \
HP-UX "+Z" \
@@ -252,7 +252,7 @@
hp700_ux101 "-fpic" \
HP-UX "+Z -Wc,-ansi_for_scope,on" \
hp_ux102 "-z +p -Wc,-ansi_for_scope,on +O2 +Onoinitcheck" \
- Linux "-pipe -ansi -pedantic -W -Wall -Wwrite-strings -Wpointer-arith -Woverloaded-virtual " \
+ Linux "${CXXFLAGS}" \
SunOS "-KPIC" \
VisualC '/nologo /DWIN32 /MD /W3 $(includes) /c /EHsc'

@@ -403,7 +403,7 @@
macro shlibflags "" \
HP-UX "-Wl,-a,shared -b +Z -q -Wl,+s -Wl,+vallcompatwarnings" \
OSF1 "-shared -expect_unresolved '*'" \
- Linux "-shared" \
+ Linux "-shared ${LDFLAGS}" \
CYGWIN "-shared" \
SunOS "$(debug_option)" \
VisualC "" \

0 comments on commit 83759ac

Please sign in to comment.