Skip to content

Commit 96cac3c

Browse files
authored
Merge pull request #50 from mnhauke/master
configure: add SUSE specific bintools variation
2 parents 1e71798 + 1997bb9 commit 96cac3c

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

configure.ac

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ if test -n "$CROSS_PREFIX"; then
136136
AC_MSG_ERROR([${CROSS_PREFIX}as not found, CROSS_PREFIX is wrong])
137137
fi
138138
else
139-
AC_PATH_PROGS([CROSS_AS], [i686-linux-gnu-as i686-unknown-linux-gnu-as i386-elf-as])
139+
AC_PATH_PROGS([CROSS_AS], [i686-linux-gnu-as i686-unknown-linux-gnu-as i586-suse-linux-as i386-elf-as])
140140
fi
141141
if test -z "$CROSS_AS"; then
142142
AC_PATH_PROG([CROSS_AS], [x86_64-linux-gnu-as])
@@ -173,7 +173,7 @@ if test -n "$CROSS_PREFIX"; then
173173
AC_MSG_ERROR([${CROSS_PREFIX}ld not found, CROSS_PREFIX is wrong])
174174
fi
175175
else
176-
AC_PATH_PROGS([CROSS_LD], [i686-linux-gnu-ld i686-unknown-linux-gnu-ld i386-elf-ld x86_64-linux-gnu-ld ld.lld])
176+
AC_PATH_PROGS([CROSS_LD], [i686-linux-gnu-ld i686-unknown-linux-gnu-ld i586-suse-linux-ld i386-elf-ld x86_64-linux-gnu-ld ld.lld])
177177
fi
178178
if test -z "$CROSS_LD"; then
179179
if test \( "$machine" = "i386" -o "$machine" = "x86_64" \) -a "$CONFIG_HOST" != "Darwin"; then
@@ -212,7 +212,7 @@ if test -n "$CROSS_PREFIX"; then
212212
AC_MSG_ERROR([${CROSS_PREFIX}ar not found, CROSS_PREFIX is wrong])
213213
fi
214214
else
215-
AC_PATH_PROGS([CROSS_AR], [i686-linux-gnu-ar i686-unknown-linux-gnu-ar i386-elf-ar x86_64-linux-gnu-ar llvm-ar], [], [$PATH${PATH_SEPARATOR}/usr/local/opt/llvm/bin])
215+
AC_PATH_PROGS([CROSS_AR], [i686-linux-gnu-ar i686-unknown-linux-gnu-ar i586-suse-linux-ar i386-elf-ar x86_64-linux-gnu-ar llvm-ar], [], [$PATH${PATH_SEPARATOR}/usr/local/opt/llvm/bin])
216216
fi
217217
if test -z "$CROSS_AR"; then
218218
if test "$machine" = "i386" -o "$machine" = "x86_64"; then
@@ -229,7 +229,7 @@ if test -n "$CROSS_PREFIX"; then
229229
AC_MSG_ERROR([${CROSS_PREFIX}strip not found, CROSS_PREFIX is wrong])
230230
fi
231231
else
232-
AC_PATH_PROGS([CROSS_STRIP], [i686-linux-gnu-strip i686-unknown-linux-gnu-strip i386-elf-strip x86_64-linux-gnu-strip llvm-strip], [], [$PATH${PATH_SEPARATOR}/usr/local/opt/llvm/bin])
232+
AC_PATH_PROGS([CROSS_STRIP], [i686-linux-gnu-strip i686-unknown-linux-gnu-strip i586-suse-linux-strip i386-elf-strip x86_64-linux-gnu-strip llvm-strip], [], [$PATH${PATH_SEPARATOR}/usr/local/opt/llvm/bin])
233233
fi
234234
if test -z "$CROSS_STRIP"; then
235235
if test "$machine" = "i386" -o "$machine" = "x86_64"; then
@@ -246,7 +246,7 @@ if test -n "$CROSS_PREFIX"; then
246246
AC_MSG_ERROR([${CROSS_PREFIX}objcopy not found, CROSS_PREFIX is wrong])
247247
fi
248248
else
249-
AC_PATH_PROGS([XOBJCOPY], [i686-linux-gnu-objcopy i686-unknown-linux-gnu-objcopy x86_64-linux-gnu-objcopy llvm-objcopy objcopy])
249+
AC_PATH_PROGS([XOBJCOPY], [i686-linux-gnu-objcopy i686-unknown-linux-gnu-objcopy i586-suse-linux-objcopy x86_64-linux-gnu-objcopy llvm-objcopy objcopy])
250250
fi
251251

252252
AC_CHECK_PROGS([UCTAGS], [uctags ctags])

dj64.mk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ $(error unknown target architecture)
55
endif
66
OS = $(shell uname -s)
77
NATIVE=0
8-
ifneq ($(filter x86_64 amd64 i686 i386,$(MACH)),)
8+
ifneq ($(filter x86_64 amd64 i686 i586 i386,$(MACH)),)
99
ifneq ($(OS), Darwin)
1010
NATIVE = 1
1111
endif
@@ -23,12 +23,15 @@ CROSS_PREFIX := i686-linux-gnu-
2323
ifeq ($(shell $(DJ64AS) --version 2>/dev/null),)
2424
CROSS_PREFIX := i686-unknown-linux-gnu-
2525
ifeq ($(shell $(DJ64AS) --version 2>/dev/null),)
26+
CROSS_PREFIX := i586-suse-linux-
27+
ifeq ($(shell $(DJ64AS) --version 2>/dev/null),)
2628
CROSS_PREFIX := x86_64-linux-gnu-
2729
ifeq ($(shell $(DJ64AS) --version 2>/dev/null),)
2830
CROSS_PREFIX :=
2931
endif
3032
endif
3133
endif
34+
endif
3235
else ifeq ($(shell $(DJ64AS) --version 2>/dev/null),)
3336
# CROSS_PREFIX already set
3437
$(error invalid CROSS_PREFIX)

0 commit comments

Comments
 (0)