Gentoo Archives: gentoo-devhelp

From: Nikos Chantziaras <realnc@×××××.de>
To: gentoo-devhelp@l.g.o
Subject: [gentoo-devhelp] Re: qmake and stripped executables
Date: Fri, 15 May 2009 12:16:53
Message-Id: gujmeh$s1r$1@ger.gmane.org
In Reply to: Re: [gentoo-devhelp] qmake and stripped executables by Mike Frysinger
1 Mike Frysinger wrote:
2 > On Wednesday 13 May 2009 22:02:06 Nikos Chantziaras wrote:
3 >> qmake (from Qt 3) creates makefiles that strip all executables during
4 >> installation. The generated rule looks like this:
5 >>
6 >> install_target: all
7 >> @$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)/lib64/" || $(MKDIR)
8 >> "$(INSTALL_ROOT)/lib64/"
9 >> -$(INSTALL_FILE) "$(QMAKE_TARGET)"
10 >> "$(INSTALL_ROOT)/lib64/$(QMAKE_TARGET)"
11 >> -strip "$(INSTALL_ROOT)/lib64/$(QMAKE_TARGET)"
12 >>
13 >> This results in portage issuing a QA warning during the emerge (portage
14 >> wants to strip the executables itself).
15 >
16 > rightly so
17 >
18 >> What would be a good way to fix that?
19 >
20 > find an option that doesnt emit the strip line or run `sed` after the fact to
21 > delete the strip line
22
23 OK, I found the solution. Someone replied to me off-list hinting at
24 QMAKE_STRIP in qt4.eclass. It turns out that Qt3 also supports this
25 flag. Even though qt3.eclass doesn't set this on its own, I can set it
26 manually during the eqmake3 invocation in the ebuild.

Replies

Subject Author
[gentoo-devhelp] Re: qmake and stripped executables Nikos Chantziaras <realnc@×××××.de>