2013-08-06 05:32:48 +04:00
|
|
|
local architecture = $(TARGET_PACKAGING_ARCH) ;
|
|
|
|
|
|
|
|
|
|
|
|
local haikuDevelPackage = haiku_$(architecture)_devel.hpkg ;
|
|
|
|
HaikuPackage $(haikuDevelPackage) ;
|
|
|
|
|
|
|
|
local arch = $(TARGET_ARCH) ;
|
|
|
|
|
|
|
|
# glue code
|
|
|
|
AddFilesToPackage develop lib $(architecture) :
|
|
|
|
<src!system!glue!arch!$(arch)!$(architecture)>crti.o
|
|
|
|
<src!system!glue!arch!$(arch)!$(architecture)>crtn.o
|
|
|
|
<src!system!glue!$(architecture)>init_term_dyn.o
|
|
|
|
<src!system!glue!$(architecture)>start_dyn.o
|
|
|
|
<src!system!glue!$(architecture)>haiku_version_glue.o
|
|
|
|
;
|
|
|
|
|
|
|
|
# additional libraries
|
2013-11-18 13:58:13 +04:00
|
|
|
local developmentLibs = [ MultiArchDefaultGristFiles libroot_debug.so : revisioned ] ;
|
|
|
|
AddFilesToPackage lib $(architecture) : $(developmentLibs) ;
|
2013-08-06 05:32:48 +04:00
|
|
|
|
|
|
|
# library symlinks
|
|
|
|
local lib ;
|
|
|
|
for lib in [ HaikuImageGetSystemLibs ] $(developmentLibs) {
|
|
|
|
AddSymlinkToPackage develop lib $(architecture)
|
|
|
|
: /system/lib/$(architecture) $(lib:BS) ;
|
|
|
|
local abiVersion = [ on $(lib) return $(HAIKU_LIB_ABI_VERSION) ] ;
|
|
|
|
if $(abiVersion) {
|
|
|
|
local abiVersionedLib = $(lib:BS).$(abiVersion) ;
|
|
|
|
AddSymlinkToPackage develop lib $(architecture)
|
|
|
|
: /system/lib/$(architecture) $(abiVersionedLib) ;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# static libraries
|
libroot: Ship empty libpthread.a and libm.a for POSIX and general compatibility.
A few weeks back, I spotted in the Musl FAQ that they apparently ship
empty libm.a and libpthread.a files (https://www.musl-libc.org/faq.html),
which they said was for POSIX compatibility. A bit of digging got me to
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/c99.html which
says:
> It is unspecified whether the libraries libc.a, libl.a, libm.a, libpthread.a,
> librt.a, [OB] [Option Start] libtrace.a, [Option End] libxnet.a, or liby.a
> exist as regular files. The implementation may accept as -l option-arguments
> names of objects that do not exist as regular files.
So to follow the letter of the law, we only need to have the "c99" command
accept these; however, it appears all Linux and BSD cstdlibs accept them
no matter what compliance mode is in effect.
Discussed with PulkoMandy. This will make HaikuPorts' job a lot easier...
2016-08-13 18:16:06 +03:00
|
|
|
AddFilesToPackage develop lib $(architecture) :
|
2020-07-25 17:57:51 +03:00
|
|
|
<$(architecture)>libc.a
|
libroot: Ship empty libpthread.a and libm.a for POSIX and general compatibility.
A few weeks back, I spotted in the Musl FAQ that they apparently ship
empty libm.a and libpthread.a files (https://www.musl-libc.org/faq.html),
which they said was for POSIX compatibility. A bit of digging got me to
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/c99.html which
says:
> It is unspecified whether the libraries libc.a, libl.a, libm.a, libpthread.a,
> librt.a, [OB] [Option Start] libtrace.a, [Option End] libxnet.a, or liby.a
> exist as regular files. The implementation may accept as -l option-arguments
> names of objects that do not exist as regular files.
So to follow the letter of the law, we only need to have the "c99" command
accept these; however, it appears all Linux and BSD cstdlibs accept them
no matter what compliance mode is in effect.
Discussed with PulkoMandy. This will make HaikuPorts' job a lot easier...
2016-08-13 18:16:06 +03:00
|
|
|
<$(architecture)>libcolumnlistview.a
|
|
|
|
<$(architecture)>liblocalestub.a
|
|
|
|
<$(architecture)>libm.a
|
2021-01-20 17:24:53 +03:00
|
|
|
<$(architecture)>libnetservices.a
|
libroot: Ship empty libpthread.a and libm.a for POSIX and general compatibility.
A few weeks back, I spotted in the Musl FAQ that they apparently ship
empty libm.a and libpthread.a files (https://www.musl-libc.org/faq.html),
which they said was for POSIX compatibility. A bit of digging got me to
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/c99.html which
says:
> It is unspecified whether the libraries libc.a, libl.a, libm.a, libpthread.a,
> librt.a, [OB] [Option Start] libtrace.a, [Option End] libxnet.a, or liby.a
> exist as regular files. The implementation may accept as -l option-arguments
> names of objects that do not exist as regular files.
So to follow the letter of the law, we only need to have the "c99" command
accept these; however, it appears all Linux and BSD cstdlibs accept them
no matter what compliance mode is in effect.
Discussed with PulkoMandy. This will make HaikuPorts' job a lot easier...
2016-08-13 18:16:06 +03:00
|
|
|
<$(architecture)>libpthread.a
|
2014-09-28 13:46:29 +04:00
|
|
|
<$(architecture)>libshared.a ;
|
2013-08-06 05:32:48 +04:00
|
|
|
|
|
|
|
# the POSIX error code mapper library
|
|
|
|
AddFilesToPackage develop lib $(architecture)
|
|
|
|
: libposix_error_mapper.a ;
|
|
|
|
|
|
|
|
# ABI independent stuff
|
|
|
|
|
|
|
|
# cpp headers
|
2020-10-07 06:46:18 +03:00
|
|
|
if $(HAIKU_CC_IS_LEGACY_GCC_$(architecture)) = 1 {
|
2013-08-06 05:32:48 +04:00
|
|
|
# GCC 2 only -- for GCC 4 they come with the gcc package
|
|
|
|
CopyDirectoryToPackage develop headers c++
|
|
|
|
: [ FDirName $(HAIKU_TOP) headers cpp ] : 2.95.3 ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
BuildHaikuPackage $(haikuDevelPackage) : haiku_devel_secondary ;
|