-
Notifications
You must be signed in to change notification settings - Fork 154
RDKEMW-9893: added option to enable new dtags. #1603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RDKEMW-9893: added option to enable new dtags. #1603
Conversation
magomez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The approach should be defining a new option DISABLE_NEW_DTAGS, and then use it together with LD_SUPPORTS_DISABLE_NEW_DTAGS to produce the desired value, like it's done for other options in the same file.
Something like
if (LD_SUPPORTS_DISABLE_NEW_DTAGS)
set(DISABLE_NEW_DTAGS_DEFAULT ON)
else ()
set(DISABLE_NEW_DTAGS_DEFAULT OFF)
endif ()
option(DISABLE_NEW_DTAGS "Disable new dtags" ${DISABLE_NEW_DTAGS_DEFAULT})
if (DISABLE_NEW_DTAGS)
disable the dtags
else ()
enable the dtags
Source/cmake/OptionsCommon.cmake
Outdated
| endif () | ||
| if (LD_USAGE MATCHES "--disable-new-dtags") | ||
| set(LD_SUPPORTS_DISABLE_NEW_DTAGS TRUE) | ||
| option(LD_SUPPORTS_DISABLE_NEW_DTAGS "" OFF) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LD_SUPPORTS_DISABLE_NEW_DTAGS contains whether --disable-new-tags is supported by the linker. It shouldn't be turned into an option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm afraid you haven't removed this option and now it's duplicated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm afraid you haven't removed this option and now it's duplicated.
Done, somehow after squash it was restored.
Hi @magomez i made changes and commited :b72b5c4. I need to ammend also bb file and 2.38 cmake if this commit looks ok. |
|
Please, join those commits into a single one, as they are part of the same change. |
b72b5c4 to
52049a6
Compare
Done |
RDKEMW-9893: added option to enable new dtags.
52049a6 to
05c2201
Compare
Added option to enable new dtags.
Explanation:
This change introduces a Cmake option ENABLE_NEW_DTAGS to allow to use --enable-new-dtags for WPE Webkit build.
Primary goal is to force the linker to use DT_RUNPATH instead of legacy DT_RPATH. This change is important because:
Changes: