Commit graph

21 commits

Author SHA1 Message Date
Stas Boukarev 1809b3da14 run-compiler.sh: add -m32 to Linux-SPARC 2026-02-21 10:05:31 +03:00
Sergey Fedorov f2ab0c4dc8 ppc/Darwin: Misc fixes for PPC 2023-08-30 22:37:22 +02:00
Douglas Katzman 62766e6aa7 Fix run-compiler for SunOS if CC is unset 2020-09-16 15:56:43 -04:00
Joshua Elsasser 12f1068131 Revert "Teach elfcore.test.sh about non-linux OSes and reenable."
This moved the position of the flags in the compiler command, which
appears to have broken some configurations.

This reverts commit 75b031363a.
2020-05-28 10:10:06 -07:00
Joshua Elsasser 75b031363a Teach elfcore.test.sh about non-linux OSes and reenable.
This adds a new -sbcl-libs flag to tests/run-compiler.sh for adding
flags necessary to link the runtime and uses it in elfcore.test.sh.
Ideally the makefiles from src/runtime/ would be used to avoid
duplication, but this is a simpler and less invasive change.

Additionally, don't try to execute an sbcl from /tmp on OpenBSD, RWX
mmap() restrictions mean that anywhere outside the source directory is
unlikely to work.
2020-05-28 09:17:55 -07:00
Stas Boukarev ad4f0adbe4 tests/run-compiler.sh: -FPIC without going over all the platforms. 2018-12-17 21:28:57 +03:00
Alastair Bridgewater 84b4229c74 hppa: Explain to the test suite how to make a .so file on Linux
* Not much to say here, really.
2015-11-30 15:06:41 -05:00
Alastair Bridgewater 46e9c07948 Explain to the test suite how to make a .so file on Linux/Alpha
* Not much to say here, really.
2015-11-13 14:59:31 +00:00
David Vazquez 1e226263db Do not rely on which to be present in the system
For portability, it is better to use the built-in `command` to check the
existance of executables in the system.
2015-10-18 18:57:53 +03:00
Stas Boukarev ba986de413 tests: add -fPIC for run-compiler.sh on ARM.
Fixes lp#1349830.
2014-08-01 15:12:43 +04:00
Christophe Rhodes c06b8c16bd support for DragonFly BSD
x86(-64) only for now, and threads are currently non-functional.
Closes lp#1292845, thanks to Vasily Postnicov.
2014-06-20 11:48:35 +01:00
Stas Boukarev cadf7d0af4 Enable building 32-bit SBCL on 64-bit FreeBSD.
Allow for ./make.sh --arch=x86 to work on x86-64.
2014-04-05 19:05:56 +04:00
Stas Boukarev 6c3ae0c21e tests: Use cc by default, not gcc. 2014-03-22 17:19:51 +04:00
Jim Wise 9b69e80c82 For consistency with other shell scripts here, use #!/bin/sh.
This (alone) used #!/bin/bash, but does not seem to depend on it.
2013-10-13 17:23:38 -04:00
Stas Boukarev 5fca28334e tests/run-compiler.sh: use gcc, not cc. 2013-08-30 04:40:31 +04:00
Stas Boukarev 1d9fe1f6d7 Set up alien stack correctly on non-x86oids.
It's assumed that the C stack grows upward everywhere but X86oids,
which is not true. Define two new conditions,
ALIEN_STACK_GROWS_DOWNWARD and ALIEN_STACK_GROWS_UPWARD.

This fixes FFI issues on PPC.
2013-08-15 21:52:24 +04:00
Christophe Rhodes bdcbd4b5e8 test environment fix for 64-bit PowerPC/Linux
(from Eric Marsden sbcl-devel 2012-03-26)
2013-03-26 12:45:55 +00:00
Nikodemus Siivola af0f0f905a make SBCL_ARCH=x86 build work on 64-bit linux without chroot
(Assuming all the compatibility libs, etc, have been installed.)
2011-08-01 17:57:51 +03:00
Jim Wise 6b5e285152 Better Solaris support in tests:
a.) support for Solaris /bin/sh in sh-based tests (`...` for $(...), and no
    test -e)

b.) Make run-compiler.sh obey $CC, if set, and teach it about Solaris
    arch support.
2011-04-04 15:28:19 +00:00
Cyrus Harmon 2f7e7231ad 1.0.46.29: fix run-compiler.sh for darwin/x86
* default arch is now x86_64, so check for x86 and use arch i386 if
   appropriate
2011-03-08 01:44:41 +00:00
Nikodemus Siivola 01b41fdd69 1.0.42.20: use platform-dependent CFLAGS consistently in tests
Patch by Josh Elsasser, lp#615499.

 In his words:

 "Attached is a patch which moves all the duplicated, out-of-sync C
 compiler flag selection in the tests into a single wrapper script.
 When passed a flag like -sbcl-pic or -sbcl-shared, the script will
 decided if -fPIC or -shared/-bundle is needed based on SOFTWARE-TYPE
 and MACHINE-TYPE which SBCL has passed in the environment.

 I tested this on several x86 OSes and a couple PowerPC, as well as
 SunOS on SPARC and OpenBSD on x86-64. For the -sbcl-pic case I have
 verified that -fPIC is needed on OpenBSD-PowerPC, OpenBSD-X86-64,
 SunOS-SPARC and SunOS-X86; the other cases are guesses based on the
 existing reader conditionals. It is not needed on Darwin or Linux on
 PowerPC, or on any x86 OSes I tested aside from SunOS.

 I haven't verified that -arch x86_64 is actually needed on
 Darwin-X86-64, or that something like -m64 isn't needed on other
 X86-64 OSes (aside from OpenBSD)."
2010-09-01 17:21:07 +00:00