[Qt-creator] qmake: no "strip" in generated Makefile

Andrzej Telszewski atelszewski at gmail.com
Wed Feb 24 22:31:18 CET 2016


On 24/02/16 20:27, Andrzej Telszewski wrote:
> [corrected]
>
> Hi,
>
> I came across something strange. On both tested systems the qmake
> version is 2.01a, but the Makefile generated on one of the systems does
> not have the strip command.
>
> With strip:
> @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/bin/ || $(MKDIR)
> $(INSTALL_ROOT)/usr/bin/
> $(INSTALL_PROGRAM) "build/prog/$(QMAKE_TARGET)"
> "$(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET)"
> $(STRIP) "$(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET)"
>
> Without strip:
> @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/bin/ || $(MKDIR)
> $(INSTALL_ROOT)/usr/bin/
> $(INSTALL_PROGRAM) "build/prog/$(QMAKE_TARGET)"
> "$(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET)"
>
> The system that includes the strip command is:
> QMake version 2.01a
> Using Qt version 4.8.4 in /usr/lib64/qt/lib
>
> The system that does not include the strip command is:
> QMake version 2.01a
> Using Qt version 4.6.2 in /usr/lib64
>
>
> Could you please explain me how can I make the qmake to always include
> the strip step in the Makefile?
>

I found another thing: the Makefile generated on the "offending" system 
does not define the strip command:
(...)
COPY_DIR      = $(COPY) -r
STRIP         =
INSTALL_FILE  = install -m 644 -p
(...)

but if I force it in .pro file:
QMAKE_STRIP = /usr/bin/strip

then it appears in the Makefile:
$(STRIP) "$(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET)"


Is it related to Qt 4.6.2?
Or maybe something specific to the operating system (CentOS 6.6)?
Or am I missing something in .pro file?

The Makefile that *does* contain the strip command was generated on 
Slackware.

-- 
Best regards,
Andrzej Telszewski



More information about the Qt-creator mailing list