-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
xz: Compile with PIC to fix linking errors #8159
Conversation
We can't use |
This is simpler. The configure script has native support for it. |
We should probably drop assume ram as it breaks functionality over the board and dropping |
Unfortunately, I can't see any history into why assume-ram=4 was added. Maybe use on a 16MB device? Could increase to 64MB as that seems to be the new minimum. That's concerning that it breaks decompressing xz -9 archives though... |
While researching CircleCI build failures, I came across a linking error relating to liblzma, where ld instructs to recompile with fPIC. Unfortunately, this increases filesize. Added some configure flags to try to mitigate is somewhat. Removed maintainer as he is no longer active. Added PKG_CPE_ID for proper CVE tracking. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Added LTO. Funny enough, adding
increases ipk size from 50491 to 50516. No idea why. |
|
I made a similar change to this here: openwrt/packages#8159 However, it turns out this did not fix the problem as the problem has to do with tools/xz and not the xz package. The error is the same and causes linking errors as can be seen above. Signed-off-by: Rosen Penev <rosenp@gmail.com>
I made a similar change to this here: openwrt/packages#8159 However, it turns out this did not fix the problem as the problem has to do with tools/xz and not the xz package. The error is the same and causes linking errors as can be seen above. Signed-off-by: Rosen Penev <rosenp@gmail.com>
While researching CircleCI build failures, I came across a linking error
relating to liblzma, where ld instructs to recompile with fPIC.
Unfortunately, this increases filesize. Added some configure flags to try
to mitigate is somewhat.
Signed-off-by: Rosen Penev rosenp@gmail.com
Maintainer: nobody
Compile tested: ramips
Error: https://gist.github.com/neheb/9d3d0a2583e6e190e7254db078128640