Add hidden visibility for linux-g++-64 mkspecs. #44
Merged
MicheleC
merged 1 commits from fix/hidden_visibility_linux-g++-64
into master
4 years ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'fix/hidden_visibility_linux-g++-64'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Add new paths for X11 includes and libraries.
Some cosmetics.
For those who want to build with:
This shouldn't be explicitely requested E.G: https://mirror.git.trinitydesktop.org/gitea/TDE/tde-packaging/src/branch/master/redhat/dependencies/tqt3/tqt3.spec#L1285
I kept the former path for X11 (aka /usr/X11R6/include and /usr/X11R6/lib ), I'm not sure It's still relevant these days.
I'm surprised that hidden visibility isn't the default for linux-g++-64. So that's a good idea. It seems the same could be the case for linux-g++-32.
I don't think these paths are currently valid for any Linux.
ok, so I'll amend this PR accordingly for tomorrow (or later).
Add hidden visibility for linux-g++-64 mkspecs.to WIP: Add hidden visibility for linux-g++-64 mkspecs. 4 years agolinux-g++-32 has been adjusted for hidden symbols visibility but not tested.
WIP: Add hidden visibility for linux-g++-64 mkspecs.to Add hidden visibility for linux-g++-64 mkspecs. 4 years agoThe changes looks good, but the loss of alignment on the 64 bit version is not a good idea in my opinion.
First of all the file is much more readable when all the options are nicely aligned. Secondly checking at random qmake.conf in some of the other folders in mkspecs, they are all nicely aligned. So if we want to change the alignment, we should change it for all of them, not just a single one.
Brought back the former alignment, my IDE's indentation was not right.
It looks good. It seems necessary to do a rebase to the current HEAD.
Thanks for fixing up the mis-alignment in the 6bit code. See further comment below about include/lib folders. We shall discuss further before we merge this PR, IMO.
QMAKE_LIBDIR =
QMAKE_INCDIR_X11 = /usr/X11R6/include
QMAKE_LIBDIR_X11 = /usr/X11R6/lib64
QMAKE_INCDIR_X11 = /usr/X11R6/include /usr/include /usr/include/X11
I am wondering why in the 64 bit version you have changed these definitions but not on the 32 bit version. It seems weird to me.
The change is partially good in my opinion: I would move /usr/include/X11 to the beginning so it would be the first folder while I wonder if addind /usr/include to a QMAKE_INCDIR_X11 is appropriate or not, given the variable is specifically for X11.
Once we decide on what we want to do, I think we should probably do the same changes to the other folders too. What do you think?
Basically,
/usr/include
is the default include path, which does not need to be specified. When calling pkg-config, the behavior is similar – if include is the default/usr/include
, it is omitted. So it is likely that/usr/include
may also be omitted here.Exactly.
I think we should limit this PR to the hidden visibility changes only. Then if we want to review the various inlcude/lib folders, we should do that separately (new PR) and for all archs/compilers, for consistency.
Looks good 👍
Thanks for the various changes.
9afb3f4d91
into master 4 years agoReviewers
9afb3f4d91
.