Commit graph

48 commits

Author SHA1 Message Date
Ryan C. Gordon
acd291243a Backport gcc-fat.sh and g++-fat.sh to the 1.2 branch to help buildbot.
--HG--
branch : SDL-1.2
2014-06-23 11:29:53 -04:00
Sam Lantinga
a69a54b626 Allow building from somewhere other than the source directory
--HG--
branch : SDL-1.2
2012-02-04 18:12:20 -05:00
Sam Lantinga
32364d8be3 Added the SDL pkg-config file to the fat build
--HG--
branch : SDL-1.2
2011-12-31 18:04:17 -05:00
Sam Lantinga
ce78d77719 Updated the fat build for the new libtool libSDLmain.a
--HG--
branch : SDL-1.2
2011-12-31 17:36:14 -05:00
Sam Lantinga
4892d485c2 Fixed bug 938 - SDL fails to link in mingw+msys+libtool
Carlo Bramini 2010-01-27 10:06:17 PST
When building third party software powered by libtool (like xine-lib and
several others) under Mingw+MSys, libSDL fails to link.
I got this message when building SDL video out component of xine-lib:

*** Warning: linker path does not have real file for library -lmingw32.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libmingw32 and none of the candidates passed a file format test
*** using a file magic. Last file checked: /mingw/lib/libmingw32.a

Apparently there is no need to manually add -lmingw32 for making libSDL
working.
If this flag is removed, everything is built without troubles.
If it has been added for fixing a cross-compiler, perhaps if would be a better
idea to adjust its SPECS file in the same manner it has been done in the true
one used by mingw on Windows (I'm just guessing why it exists here).

There is also another message received on the console:

*** Warning: linker path does not have real file for library -lSDLmain.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libSDLmain and none of the candidates passed a file format test
*** using a file magic. Last file checked: /mingw/lib/libSDLmain.a

This message, like previous one, is caused by -no-undefined flag sent to
libtool when building shared libraries.
Actually adding an .la file with its dependencies solves the troubles, so I
believe it would be better to create it too in the build process of libSDL.

--HG--
branch : SDL-1.2
2011-12-30 14:14:45 -05:00
Ryan C. Gordon
ee6cb8e626 Cleaned up fatbuild.sh
--HG--
branch : SDL-1.2
2011-09-19 01:46:55 -04:00
Ryan C. Gordon
d1ec851e04 Make build-scripts/fatbuild.sh sane for x86-64.
No one targets 10.5 or uses gcc 4.0 with x86-64 Mac OS X.

--HG--
branch : SDL-1.2
2011-09-16 00:46:59 -04:00
Sam Lantinga
c3c3d4dcb8 Removed some extra ppc scaffolding
--HG--
branch : SDL-1.2
2011-08-14 17:21:12 -04:00
Sam Lantinga
3b5adfdca1 Fat build doesn't support PPC anymore.
--HG--
branch : SDL-1.2
2011-08-14 17:17:17 -04:00
Sam Lantinga
60e40dbbd2 Ozkan Sezer to slouken
The attached small patch updates SDL's libtoolized files for
pe-x86_64 magic, ie win/x64.

--HG--
branch : SDL-1.2
2011-01-26 12:26:27 -08:00
Sam Lantinga
0d461a0322 Debian patch: 012_nasm_include.diff
--HG--
branch : SDL-1.2
2010-07-18 07:55:34 -07:00
Ryan C. Gordon
cb5514cf3d Reverted accidental commit.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404424
2010-01-17 05:19:32 +00:00
Ryan C. Gordon
7e6a3a8a13 1.2 pulseaudio: make some function pointers static.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404423
2010-01-17 05:17:59 +00:00
Ryan C. Gordon
719e1e0185 fatbuild.sh: work around directory name change in Xcode 3.2.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404143
2009-10-28 19:42:16 +00:00
Sam Lantinga
69e01437c8 Debian patch: 040_propagate_pic_to_nasm.diff
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404014
2009-10-10 08:56:01 +00:00
Sam Lantinga
0cfa331d1a Update config.guess and config.sub
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403988
2009-10-08 07:09:04 +00:00
Sam Lantinga
b3e1d764b8 Updated libtool to version 2.2.6a
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403975
2009-10-04 22:31:25 +00:00
Ryan C. Gordon
ea1fe254af Tweaked fatbuild.sh so it works with install_name_tool.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402946
2008-07-25 10:52:10 +00:00
Sam Lantinga
76b4e0774f Updates for building on Windows CE using mingw32ce cross compiler:
http://sourceforge.net/mailarchive/forum.php?thread_name 0703291652.38437.jwalt%40garni.ch&forum_name=cegcc-devel

Hi!

I just managed to compile SDL for Windows CE using the "mingw32ce"
configuration of http://cegcc.sourceforge.net. Test programs work as expected
(except for those using signals -- no POSIX on mingw32ce), and I didn't yet
encounter any problem.

While it was a pain to get everything compiled and running, the changes to
SDL are actually quite small (see attached SDL-ce.diff).

Unfortunately, the win32 headers shipped with cegcc are not 100% correct, and
it feels quite messy to work around them in SDL code, so those headers will
also need to be patched. (Attachment: win32api-ce.diff)

Since I had to apply the libtool patch from the cegcc patch, I have also ad ded
my copy of aclocal.m4 for SDL. I had to modify the cegcc libtool patch to
use "lt_cv_deplibs_check_method=pass_all" for mingw32ce, otherwise libtool
would not recognize the import libraries as valid for dynamic linking.

All these changes should not affect non-WinCE builds, so they could be
included in mainline SDL.

If you need some docs, you can use this description for a cross-compilation
README:

1) get cegcc from http://cegcc.sourceforge.net
2) build and install the "mingw32ce" variant (see cegcc installation docs)
3) patch w32api-headers (if not yet included in cegcc)
4) setup environment (customize the first three lines as you like):
PREFIX=/opt/mingw32ce
TARGET=arm-wince-mingw32ce
BUILD=`uname -m`-pc-linux-gnu
export PATH="$PREFIX/bin:$PREFIX/$TARGET/bin:$PREFIX/local/bin:$PATH"
export CFLAGS="${CFLAGS:- -O2 -g} -I$PREFIX/local/include"
export CPPFLAGS="${CPPFLAGS:- -O2 -g} -I$PREFIX/local/include"
export CXXFLAGS="${CXXFLAGS:- -O2 -g} -I$PREFIX/local/include"
export LDFLAGS="${LDFLAGS:- -O2 -g} -L$PREFIX/local/lib"
export HOST_CC="gcc"
export CC="$PREFIX/bin/$TARGET-gcc"
export CXX="$PREFIX/bin/$TARGET-g++"
export LD="$PREFIX/bin/$TARGET-ld"
export AS="$PREFIX/bin/$TARGET-as"
export AR="$PREFIX/bin/$TARGET-ar"
export RANLIB="$PREFIX/bin/$TARGET-ranlib"
export CONFIG_SHELL="/bin/sh"
5) build and install
./configure --target=$TARGET --host=$TARGET --build=$BUILD
make
make install
6) use (4) and (5) for any SDL-using software you want to cross-compile
7) copy $PREFIX/local/bin/SDL-1-2-0.dll into your executable directory on the WinCE machine

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402703
2008-01-03 06:19:07 +00:00
Sam Lantinga
7c24058ddf Updated config scripts
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402701
2008-01-03 06:06:06 +00:00
Sam Lantinga
cfa0e4cbda Support both 10.2 and 10.3 PPC runtime SDK
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402672
2007-12-29 17:13:21 +00:00
Sam Lantinga
9d00770a13 Fixed fatbuild.sh script for building on Mac OS X 10.5
The minimum PPC SDK is 10.3.9

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402656
2007-12-28 20:39:31 +00:00
Sam Lantinga
0d40fac125 Added support for building version.rc in Windows build.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402548
2007-07-16 03:27:26 +00:00
Ryan C. Gordon
64941faf12 Corrected wrong SDK path in build-scripts/fatbuild.sh.
Fixes Bugzilla #377.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402265
2007-02-13 09:58:04 +00:00
Sam Lantinga
cb4f15a094 Almost added Mac OS X nasm support
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401905
2006-06-26 05:27:15 +00:00
Sam Lantinga
fea6ccebe3 Fixed X11 support on Mac OS X Universal build
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401758
2006-05-10 05:17:58 +00:00
Sam Lantinga
92a1f4863c Fixed execv warning when libtool creates wrapper executables
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401720
2006-05-03 16:35:29 +00:00
Sam Lantinga
f573eff4b8 [From Sam]
> BTW, when setting up parallel make, I usually use # cpus + 1, so a compile is
> running while disk access is going for another.

[From Ryan]
My experience is that this works well on Linux, but is actually slower on
PowerPC Mac OS X...not sure if that's an architecture issue or a scheduler
issue, though, and haven't tried it on Intel Mac OS X.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401681
2006-04-28 05:46:07 +00:00
Sam Lantinga
7d07e3b48d Future proof C++ code
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401680
2006-04-28 05:43:58 +00:00
Sam Lantinga
4422ede0bd Fixed bug #206, fatbuild.sh works flawlessly on Intel Macs
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401679
2006-04-28 05:38:06 +00:00
Ryan C. Gordon
12d7c190c2 fatbuild fixes:
- A change to define CXX in fatbuild, which comforts the configure script a little, even if we don't use C++ anywhere.
- Some code to see how many CPU cores exist and parallelize make across them.
- CFLAGS that apply to both archs are specified seperately (-O3, -pipe, etc)
- -fvisibility=hidden for the gcc4 builds
- a "clean", "clean-ppc" and "clean-x86" command
- Fix to SDL_config_macosx.h for the HAVE_ALLOCA_H thing.

Now builds on an Intel Mac.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401678
2006-04-27 11:18:03 +00:00
Sam Lantinga
592d2604d0 Trying to fix fatbuild.sh on intel
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401676
2006-04-27 10:21:54 +00:00
Sam Lantinga
d3375d8aba Mac OS X fat build works! :)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401655
2006-04-22 19:17:14 +00:00
Sam Lantinga
f893c5177e I think this is it...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401653
2006-04-19 03:49:57 +00:00
Sam Lantinga
99861e398e *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401652
2006-04-17 14:27:47 +00:00
Sam Lantinga
859b58d1d6 Whoops, need the actual flags here
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401646
2006-04-17 03:37:30 +00:00
Sam Lantinga
1920fbcb79 A script to build a fat version of the SDL library... completely untested!
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401643
2006-04-14 05:43:04 +00:00
Sam Lantinga
a5e03023d5 Don't hardcode the output directory
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401641
2006-04-14 03:56:31 +00:00
Sam Lantinga
1237375c2d Fixed bug #177
The attached patch changes configure.in to use "-framework FOO" instead of
"-Wl,-framework,FOO".

This avoid some issues with certain versions of libtool that do not handle
-framework properly.
Some versions of libtool will try to reorder the two parts of the option, or
render the 2nd part of the argument to the relative path of a non-existent
library.

Note: It is not enough if SDL uses a version of libtool that does this
correctly, because these -framework options show up in "sdl-config --libs".
Hence, some 3rd party apps which still ship with an old libtool have troubles
compiling under Mac OS X.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401618
2006-03-24 05:11:51 +00:00
Sam Lantinga
a4ce75efb7 Updated to libtool-1.5.22
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401574
2006-03-21 10:20:44 +00:00
Sam Lantinga
7c958aee64 CFLAGS are separate from EXTRA_CFLAGS
Fixed iconv.h detection on Cygwin32

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401525
2006-03-14 02:46:26 +00:00
Sam Lantinga
8feac6e16a Clean up temporary files. I'm not sure how this got removed, but whatever...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401497
2006-03-11 20:16:20 +00:00
Sam Lantinga
57e208b928 Date: Wed, 01 Mar 2006 10:14:31 +0000
From: "alan buckley"
Subject: Re: Updating SDL for RISC OS

I've attached a zip file with three diffs to get SDL to build on RISC OS.

configure.in.diff and makedeps.sh.diff have been modified so that they
can build the assembler file in video/riscos. You may want to double
check these as I don't know a lot about unix shell programming.
(I've tested them cross-compiling on cygwin).

sdlsysthread.diff is the changes required to SDL_systhread.c for RISC
OS. As you suspected with these changes in place you can delete the
RISC OS specific threading code in thread/riscos.

I've also renamed SDL_riscosASM.s to SDL_riscosASM.S, but I'm never
quite sure how to rename files in CVS, so if you could to this it would
be appreciated.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401463
2006-03-02 03:24:20 +00:00
Sam Lantinga
fb6b885718 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401421
2006-02-22 05:01:43 +00:00
Sam Lantinga
40c21d512e Fixed script on mingw
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401420
2006-02-22 04:44:33 +00:00
Sam Lantinga
ffe9fbfbdf Blargle-fnargle dependencies and build rules
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401395
2006-02-20 12:45:51 +00:00
Sam Lantinga
5b3fcf92ea Fixed build dependencies... ugh
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401392
2006-02-20 11:29:36 +00:00
Sam Lantinga
d3805eef09 New configure-based build system. Still work in progress, but much improved
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401365
2006-02-16 10:11:48 +00:00