#62721 closed defect (fixed)
qmake5 PG and legacysupport PG do not work together
Reported by: | szhorvat (Szabolcs Horvát) | Owned by: | Chris Jones <jonesc@…> |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | cjones051073 (Chris Jones), kencu (Ken) | |
Port: |
Description
Linking flags set by the legacysupport
portgroup are not picked up by the qmake5
portgroup. See discussion here:
https://github.com/macports/macports-ports/commit/793d1f843e0bb8e7b8327ed3e4509aade9f83aae
It seems legacysupport
sets LDFLAGS
, but this variable is ignored by the qmake5
PG. Instead, one needs to add QMAKE_LFLAGS+=...
to the configure args to control linking.
Change History (4)
comment:1 Changed 4 years ago by cjones051073 (Chris Jones)
comment:2 follow-up: 4 Changed 4 years ago by szhorvat (Szabolcs Horvát)
Looking at the qmake
(i.e. Qt4) portgroup, it seems to transfer all linker and compiler options. I wonder why qmake5
does not also do it.
comment:3 Changed 4 years ago by Chris Jones <jonesc@…>
Owner: | set to Chris Jones <jonesc@…> |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:4 Changed 4 years ago by cjones051073 (Chris Jones)
Replying to szhorvat:
Looking at the
qmake
(i.e. Qt4) portgroup, it seems to transfer all linker and compiler options. I wonder whyqmake5
does not also do it.
Yeah, was not sure myself why it was so specific in picking and choosing the options to pass...
I suspect the best way forward here is to augment the qmake5 PG to use leacysupport directly, as then it will 'known' when it has to use it and can add the flags are required wherever it needs... I'll have a quick look.