libroot: Add fake libc static library

* It's specified in POSIX: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/c99.html
* wine hardcodes a -lc in its winegcc compiler

Change-Id: I592b62085787d8f1a1ead2df32e978a91ab03ea9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3086
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
Alexander von Gluck IV 2020-07-25 09:57:51 -05:00 committed by Alex von Gluck IV
parent 6a40fd892c
commit 6f92b552f3
3 changed files with 4 additions and 1 deletions

View File

@ -39,7 +39,7 @@ for lib in [ HaikuImageGetSystemLibs ] $(developmentLibs) {
# static libraries
AddFilesToPackage develop lib :
libcolumnlistview.a
libc.a libcolumnlistview.a
<$(architecture)>liblocalestub.a
libm.a libpthread.a
libprint.a libprintutils.a

View File

@ -34,6 +34,7 @@ for lib in [ HaikuImageGetSystemLibs ] $(developmentLibs) {
# static libraries
AddFilesToPackage develop lib $(architecture) :
<$(architecture)>libc.a
<$(architecture)>libcolumnlistview.a
<$(architecture)>liblocalestub.a
<$(architecture)>libm.a

View File

@ -101,6 +101,8 @@ for architectureObject in [ MultiArchSubDirSetup ] {
[ TargetLibgcc ]
;
# These are defined in POSIX for c99 support, so fake'em
StaticLibrary [ MultiArchDefaultGristFiles libc.a ] : empty.c ;
StaticLibrary [ MultiArchDefaultGristFiles libm.a ] : empty.c ;
StaticLibrary [ MultiArchDefaultGristFiles libpthread.a ] : empty.c ;