Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1982699

Summary: qmake6 generated Makefile introduces standard rpath
Product: [Fedora] Fedora Reporter: Dominik 'Rathann' Mierzejewski <dominik>
Component: qt6-qtbaseAssignee: Jan Grulich <jgrulich>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jgrulich, kde-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dominik 'Rathann' Mierzejewski 2021-07-15 13:34:32 UTC
Description of problem:
The Makefile generated by qmake6 contains -rpath in LFLAGS.

Version-Release number of selected component (if applicable):
qt6-qtbase-6.1.1-1.fc35

How reproducible:
Always

Steps to Reproduce:
1. $ cat > configure_non_gui.pro << EOF
QT = core

HEADERS = configure.h
SOURCES = configure.cpp
EOF
2. $ touch configure.cpp configure.h
3. $ qmake6 -makefile -nocache configure_non_gui.pro
4. $ grep ^LFLAGS Makefile 

Actual results:
LFLAGS        = -Wl,-O1 -Wl,-rpath,/usr/lib64

Expected results:
LFLAGS        = -Wl,-O1

Additional info:
This is breaking mkvtoolnix build qith Qt6 due to https://fedoraproject.org/wiki/Changes/Broken_RPATH_will_fail_rpmbuild .