Commit Graph

46 Commits

Author SHA1 Message Date
Sam Lantinga
69dfb0a1f8 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
8cc4ffc8dd 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
c77c4f9d87 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
3ccf66ffe6 Cleaned up fatbuild.sh
--HG--
branch : SDL-1.2
2011-09-19 01:46:55 -04:00
Ryan C. Gordon
6555c1f7fa 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
2c09586e4a Removed some extra ppc scaffolding
--HG--
branch : SDL-1.2
2011-08-14 17:21:12 -04:00
Sam Lantinga
6e0c7548e9 Fat build doesn't support PPC anymore.
--HG--
branch : SDL-1.2
2011-08-14 17:17:17 -04:00
Sam Lantinga
2be7f1865b 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
19520ddca8 Debian patch: 012_nasm_include.diff
--HG--
branch : SDL-1.2
2010-07-18 07:55:34 -07:00
Ryan C. Gordon
cc4e49e187 Reverted accidental commit.
--HG--
branch : SDL-1.2
2010-01-17 05:19:32 +00:00
Ryan C. Gordon
8bac2a4e77 1.2 pulseaudio: make some function pointers static.
--HG--
branch : SDL-1.2
2010-01-17 05:17:59 +00:00
Ryan C. Gordon
939f043686 fatbuild.sh: work around directory name change in Xcode 3.2.
--HG--
branch : SDL-1.2
2009-10-28 19:42:16 +00:00
Sam Lantinga
81caff6917 Debian patch: 040_propagate_pic_to_nasm.diff
--HG--
branch : SDL-1.2
2009-10-10 08:56:01 +00:00
Sam Lantinga
06a18691c2 Update config.guess and config.sub
--HG--
branch : SDL-1.2
2009-10-08 07:09:04 +00:00
Sam Lantinga
397282e6ea Updated libtool to version 2.2.6a
--HG--
branch : SDL-1.2
2009-10-04 22:31:25 +00:00
Ryan C. Gordon
7e365d2e5e Tweaked fatbuild.sh so it works with install_name_tool.
--HG--
branch : SDL-1.2
2008-07-25 10:52:10 +00:00
Sam Lantinga
8bb48809ad 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
2008-01-03 06:19:07 +00:00
Sam Lantinga
809d293a66 Updated config scripts
--HG--
branch : SDL-1.2
2008-01-03 06:06:06 +00:00
Sam Lantinga
fc146970ff Support both 10.2 and 10.3 PPC runtime SDK
--HG--
branch : SDL-1.2
2007-12-29 17:13:21 +00:00
Sam Lantinga
8b3c845e2c 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
2007-12-28 20:39:31 +00:00
Sam Lantinga
54cb90b38f Added support for building version.rc in Windows build.
--HG--
branch : SDL-1.2
2007-07-16 03:27:26 +00:00
Ryan C. Gordon
c501766ce7 Corrected wrong SDK path in build-scripts/fatbuild.sh.
Fixes Bugzilla #377.

--HG--
branch : SDL-1.2
2007-02-13 09:58:04 +00:00
Sam Lantinga
1e3df63f46 Almost added Mac OS X nasm support 2006-06-26 05:27:15 +00:00
Sam Lantinga
17a4d6b1d7 Fixed X11 support on Mac OS X Universal build 2006-05-10 05:17:58 +00:00
Sam Lantinga
6fcf0ad85a Fixed execv warning when libtool creates wrapper executables 2006-05-03 16:35:29 +00:00
Sam Lantinga
f1a9e1bc50 [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.
2006-04-28 05:46:07 +00:00
Sam Lantinga
0e85088dbf Future proof C++ code 2006-04-28 05:43:58 +00:00
Sam Lantinga
ac89c28826 Fixed bug #206, fatbuild.sh works flawlessly on Intel Macs 2006-04-28 05:38:06 +00:00
Ryan C. Gordon
4845d174e1 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.
2006-04-27 11:18:03 +00:00
Sam Lantinga
4c271db358 Trying to fix fatbuild.sh on intel 2006-04-27 10:21:54 +00:00
Sam Lantinga
791ead7bbf Mac OS X fat build works! :) 2006-04-22 19:17:14 +00:00
Sam Lantinga
8c16f464ea I think this is it... 2006-04-19 03:49:57 +00:00
Sam Lantinga
e4cfa5a25d *** empty log message *** 2006-04-17 14:27:47 +00:00
Sam Lantinga
6bb3137545 Whoops, need the actual flags here 2006-04-17 03:37:30 +00:00
Sam Lantinga
62356dc030 A script to build a fat version of the SDL library... completely untested! 2006-04-14 05:43:04 +00:00
Sam Lantinga
3ca6badbcf Don't hardcode the output directory 2006-04-14 03:56:31 +00:00
Sam Lantinga
c4cb7306d5 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.
2006-03-24 05:11:51 +00:00
Sam Lantinga
1bb14e405b Updated to libtool-1.5.22 2006-03-21 10:20:44 +00:00
Sam Lantinga
84f5e115fd CFLAGS are separate from EXTRA_CFLAGS
Fixed iconv.h detection on Cygwin32
2006-03-14 02:46:26 +00:00
Sam Lantinga
5b4e4f9c01 Clean up temporary files. I'm not sure how this got removed, but whatever... 2006-03-11 20:16:20 +00:00
Sam Lantinga
26df4ca527 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.
2006-03-02 03:24:20 +00:00
Sam Lantinga
eafa423b01 *** empty log message *** 2006-02-22 05:01:43 +00:00
Sam Lantinga
44b157feba Fixed script on mingw 2006-02-22 04:44:33 +00:00
Sam Lantinga
f41e6271cd Blargle-fnargle dependencies and build rules 2006-02-20 12:45:51 +00:00
Sam Lantinga
0a167331c0 Fixed build dependencies... ugh 2006-02-20 11:29:36 +00:00
Sam Lantinga
f05187e232 New configure-based build system. Still work in progress, but much improved 2006-02-16 10:11:48 +00:00