Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#4732 Signed-off-by: Stephan Raue <stephan@openelec.tv>
- Loading branch information
#4732 Signed-off-by: Stephan Raue <stephan@openelec.tv>
c59439e
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.
Ive done this long time ago to avoid adding libm to initrd. why is this needed now. it still builds fine for me. does it fail only on x86?
c59439e
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.
Seems there is some issue with glibc 2.23 and this ply-image can't be build anymore like before. With libm linking it is bigger (~ 800 kB) and the other option is to include libm in initrd.
Not sure for other projects but at least happens to Generic.
c59439e
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.
static linking with -lm -ldl should be enough. beware of library order.
c59439e
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.
We didn't find the way.
c59439e
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.
can you check grep -ri _dl_x86_cpu_features ./ in glibc build dir ?
c59439e
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.
Sure: http://pastebin.com/g794QBwN
c59439e
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.
yea, indeed. no way to have it "partialy" static.
libm is > 1.1mb. plymouth compiled fully static is < 1mb. I'd say force static compile if libm is needed only for plymouth. http://sprunge.us/FAVc
c59439e
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.
Yes, something in latest glibc changed this option we were using for now.
c59439e
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 guess for the sake of 200-300 KB, a shared libm may pay dividends if it's ever needed by something else in future...
c59439e
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.
it's a bug. but shared libm is ok.