Skip to content
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

Draft: Preview of WIP in refactoring ABI functions and related ELF/Mach-O changes. #2350

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ scripts/sbin/pkg2ng
/external/libucl/autom4te.cache
/external/yxml/Makefile
/external/liblua/Makefile
/external/libmachista/Makefile
/external/libfetch/Makefile
/external/libelf/Makefile
/external/sqlite/Makefile
Expand Down
17 changes: 5 additions & 12 deletions auto.def
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ cc-with { -libs { -llzma }} {
}
}
if {[string match *-freebsd* [get-define host]]} {
define pkg_freebsd
define pkgos_freebsd
cc-with { -libs { -lmd }} {
if {![cc-check-functions SHA256_Data]} {
user-error "Unable to find libmd"
Expand Down Expand Up @@ -213,22 +213,14 @@ if {![cc-check-functions dlclose]} {
}
}

if {![cc-check-functions __res_query]} {
cc-with { -libs { -lresolv }} {
if {[cc-check-functions __res_query]} {
define-feature LIBRESOLV
}
}
}

cc-check-includes link.h machine/endian.h osreldate.h readpassphrase.h \
sys/procctl.h sys/statfs.h sys/statvfs.h libutil.h

# for compat
cc-check-includes dirent.h sys/sockio.h

#endian stuff
foreach header [list endian.h sys/endian.h] {
foreach header [list endian.h sys/endian.h machine/endian.h] {
if {[cc-check-includes $header]} {
cc-with [list -includes $header] {
cc-check-decls be16dec be16enc be32dec be32enc be64dec be64enc \
Expand All @@ -238,9 +230,10 @@ foreach header [list endian.h sys/endian.h] {
}

if {[string match *-darwin* [get-define host]]} {
define libmachista
define pkgos_darwin
define waflags ""
define nowaflags ""
define libelf-internal
} else {
# libelf
define waflags "-Wl,-whole-archive"
Expand Down Expand Up @@ -394,7 +387,7 @@ make-template Makefile.autosetup Makefile
foreach dir [list external/blake2 external/picosat \
external/linenoise external/sqlite \
external compat libpkg libpkg/repo libpkg/repo/binary src \
external/libucl external/libelf external/libmachista tests docs \
external/libucl external/libelf tests docs \
external/liblua external/yxml scripts external/libcurl external/libder \
external/libecc] {
make-template $dir/Makefile.autosetup $dir/Makefile
Expand Down
3 changes: 0 additions & 3 deletions external/Makefile.autosetup
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
include @builddir@/mk/defs.mk
DIRS= blake2 picosat linenoise sqlite libucl liblua yxml libder libecc
@if libmachista
DIRS+= libmachista
@endif
@if libelf-internal
DIRS+= libelf
@endif
Expand Down
4 changes: 4 additions & 0 deletions external/libelf/_libelf_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
#define LIBELF_ARCH EM_386
#define LIBELF_BYTEORDER ELFDATA2LSB
#define LIBELF_CLASS ELFCLASS32
#elif defined(__aarch64__)
#define LIBELF_ARCH EM_AARCH64
#define LIBELF_BYTEORDER ELFDATA2LSB
#define LIBELF_CLASS ELFCLASS64
#endif

#endif /* __DragonFly__ */
Expand Down
52 changes: 0 additions & 52 deletions external/libmachista/LICENSE

This file was deleted.

8 changes: 0 additions & 8 deletions external/libmachista/Makefile.autosetup

This file was deleted.

Loading
Loading