config/x86: tidy {Free,Open}BSD LDFLAGS_DIRECT handling

It's not clear why for x86-64 a different approach was used than the
(shorter) one x86-32 has been using. Move the setting to the respective
OS files and reuse x86-32's approach for x86-64, while at the same time
using an OS-independent variable name (thus avoiding the indirection
through $(XEN_OS)).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Jan Beulich committed 2022-08-12 08:54:33 +02:00
1 parent f5234f3633
commit 0c614af4a7
4 files changed
+6 -12

No files matched your search

+2
View File
@@ -1,5 +1,7 @@
include $(XEN_ROOT)/config/StdGNU.mk include $(XEN_ROOT)/config/StdGNU.mk
XEN_ELF_SUB_FLAVOR = _fbsd
# No wget on FreeBSD base system # No wget on FreeBSD base system
WGET = ftp WGET = ftp
PKG_INSTALLDIR = ${prefix}/libdata/pkgconfig PKG_INSTALLDIR = ${prefix}/libdata/pkgconfig
+2
View File
@@ -1 +1,3 @@
include $(XEN_ROOT)/config/StdGNU.mk include $(XEN_ROOT)/config/StdGNU.mk
XEN_ELF_SUB_FLAVOR = _obsd
+1 -3
View File
@@ -8,8 +8,6 @@ CONFIG_XCUTILS := y
CFLAGS += -m32 -march=i686 CFLAGS += -m32 -march=i686
# Use only if calling $(LD) directly. # Use only if calling $(LD) directly.
LDFLAGS_DIRECT_OpenBSD = _obsd LDFLAGS_DIRECT += -melf_i386$(XEN_ELF_SUB_FLAVOR)
LDFLAGS_DIRECT_FreeBSD = _fbsd
LDFLAGS_DIRECT += -melf_i386$(LDFLAGS_DIRECT_$(XEN_OS))
IOEMU_CPU_ARCH ?= i386 IOEMU_CPU_ARCH ?= i386
+1 -9
View File
@@ -14,14 +14,6 @@ SunOS_LIBDIR = $(SunOS_LIBDIR_x86_64)
EFI_DIR ?= /usr/lib64/efi EFI_DIR ?= /usr/lib64/efi
# Use only if calling $(LD) directly. # Use only if calling $(LD) directly.
ifeq ($(XEN_OS),OpenBSD) LDFLAGS_DIRECT += -melf_x86_64$(XEN_ELF_SUB_FLAVOR)
LDFLAGS_DIRECT += -melf_x86_64_obsd
else
ifeq ($(XEN_OS),FreeBSD)
LDFLAGS_DIRECT += -melf_x86_64_fbsd
else
LDFLAGS_DIRECT += -melf_x86_64
endif
endif
IOEMU_CPU_ARCH ?= x86_64 IOEMU_CPU_ARCH ?= x86_64
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.