[haiku-commits] Change in haiku[master]: libroot: Add fake libc static library

  • From: Gerrit <review@xxxxxxxxxxxxxxxxxxx>
  • To: waddlesplash <waddlesplash@xxxxxxxxx>, haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 25 Jul 2020 15:09:25 +0000

From Alex von Gluck IV <kallisti5@xxxxxxxxxxx>:

Alex von Gluck IV has uploaded this change for review. ( 
https://review.haiku-os.org/c/haiku/+/3086 ;)


Change subject: libroot: Add fake libc static library
......................................................................

libroot: Add fake libc static library

* wine hardcodes a -lc in it's winegcc compiler.
* Pulkomandy found mentions of -lc in the POSIX c99 specs.
* Everyone else includes it, so we should too.
---
M build/jam/packages/HaikuDevel
M build/jam/packages/HaikuDevelSecondary
M src/system/libroot/Jamfile
3 files changed, 4 insertions(+), 1 deletion(-)



  git pull ssh://git.haiku-os.org:22/haiku refs/changes/86/3086/1

diff --git a/build/jam/packages/HaikuDevel b/build/jam/packages/HaikuDevel
index 0bae525..6b28d58 100644
--- a/build/jam/packages/HaikuDevel
+++ b/build/jam/packages/HaikuDevel
@@ -41,7 +41,7 @@
 AddFilesToPackage develop lib :
        libcolumnlistview.a
        <$(architecture)>liblocalestub.a
-       libm.a libpthread.a
+       libc.a libm.a libpthread.a
        libprint.a libprintutils.a
        <$(architecture)>libshared.a ;

diff --git a/build/jam/packages/HaikuDevelSecondary 
b/build/jam/packages/HaikuDevelSecondary
index f0132c9..5ad7d1a 100644
--- a/build/jam/packages/HaikuDevelSecondary
+++ b/build/jam/packages/HaikuDevelSecondary
@@ -36,6 +36,7 @@
 AddFilesToPackage develop lib $(architecture) :
        <$(architecture)>libcolumnlistview.a
        <$(architecture)>liblocalestub.a
+       <$(architecture)>libc.a
        <$(architecture)>libm.a
        <$(architecture)>libpthread.a
        <$(architecture)>libshared.a ;
diff --git a/src/system/libroot/Jamfile b/src/system/libroot/Jamfile
index 9c2cd6d..1297bb1 100644
--- a/src/system/libroot/Jamfile
+++ b/src/system/libroot/Jamfile
@@ -101,6 +101,8 @@
                        [ 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 ;


--
To view, visit https://review.haiku-os.org/c/haiku/+/3086
To unsubscribe, or for help writing mail filters, visit 
https://review.haiku-os.org/settings

Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: I592b62085787d8f1a1ead2df32e978a91ab03ea9
Gerrit-Change-Number: 3086
Gerrit-PatchSet: 1
Gerrit-Owner: Alex von Gluck IV <kallisti5@xxxxxxxxxxx>
Gerrit-MessageType: newchange

Other related posts:

  • » [haiku-commits] Change in haiku[master]: libroot: Add fake libc static library - Gerrit