Commit graph

85 commits

Author SHA1 Message Date
43a9c14622
Fall back to using no colors if tput is missing 2018-02-11 16:17:32 +01:00
517f3ac632
Unbreak building without shared 2018-02-10 12:41:00 +01:00
3c08b8b64a
Copy Info.plist into .bundle, if it exists 2018-02-09 00:13:45 +01:00
9462fbe785
Remove deprecated -undefined dynamic_lookup
Instead, use ${PLUGIN_LDFLAGS_BUNDLE_LOADER} when building a .bundle,
which can then be set to -bundle_loader path_to_executable.
2018-02-07 23:38:16 +01:00
f4f8be325a
Build plugins as proper .bundles 2018-02-07 22:05:21 +01:00
4c0591c56f
Small cleanup 2018-02-07 21:14:57 +01:00
6b639af512
Use FRAMEWORK_LIBS instead of LIBS for .frameworks
This allows linking the framework against other frameworks rather than
other shared libs.
2018-01-21 22:45:44 +01:00
639eb974c9
Allow BUILDSYS_FRAMEWORK to take a code block 2018-01-21 20:00:25 +01:00
1ae4553a83
Update copyright 2018-01-21 19:39:34 +01:00
408f3121a3
Use Apple libtool if build and host are Darwin
This allows combining fat .a files.
2018-01-19 01:17:05 +01:00
78aa912fc1
Check for codesign 2017-10-24 23:48:38 +02:00
297bc60f00
Add support for building iOS frameworks
Those use a different install name than macOS frameworks.
2017-10-19 22:54:02 +02:00
b7dfe42375
Do not use LIB_LDFLAGS for .frameworks
Instead, use FRAMEWORK_LDFLAGS.
2017-10-15 22:22:10 +02:00
ed15fe408b
OpenBSD wants setaf * 0 0 on *-256color terms 2017-09-10 22:56:12 +02:00
a4288737c4
Always use -Wl,--export-all-symbols for libs
While this should be the default, it seems it's not the default when
using Clang.
2017-01-08 00:07:32 +01:00
61097f9d19
Don't match against androideabi*, but android*
On AArch64, it's just -android and not -androideabi.
2016-07-09 21:58:56 +02:00
d9cf426fe1
Disable rpath for Android EABI
Android's dynamic linker does not support rpath and issues a warning
when starting a binary linked with rpath.
2016-06-27 18:07:09 +02:00
9407b955af Move install name to new variable 2014-12-24 16:30:02 +01:00
beaa0c0f15 Include the lib major in the install_name 2014-05-25 14:04:05 +02:00
60fdb38a94 Order shared library systems alphabetically 2014-05-25 13:29:42 +02:00
1a9b3e09d3 Better naming for shared library systems 2014-05-25 13:28:38 +02:00
d74fc957f6 @rpath is not even needed as install_name
It is possible to set it to the path where the library will be installed
and still have in-tree applications work by setting DYLD_LIBRARY_PATH.
Even if the library is already installed, it will use the in-tree
library if DYLD_LIBRARY_PATH is set.
2014-05-15 17:52:30 +02:00
45b155c8f9 Use @rpath/foo.dylib as install_name
This makes it behave like on ELF systems where rpath is used to tell the
linker where to look for libraries.
2014-05-15 03:09:37 +02:00
271b94aa6b Do not automatically call AC_CONFIG_COMMANDS_*
This causes problems with some versions of autoconf / m4. Moving it to a
function called BUILDSYS_INIT and calling that fixes it.
2014-02-24 03:55:15 +01:00
c67285b68e Update copyright 2014-02-23 18:39:19 +01:00
05e30dae9d Remove BUILDSYS_INIT and BUILDSYS_TOUCH_DEPS. 2013-07-01 14:56:28 +02:00
bd9b6c0825 Only generate depends if the compiler supports it.
For assembly files, AS_DEPENDS needs to be set. As usually AS is set to
CC, it can be done using AS_DEPENDS = ${CC_DEPENDS}.
2012-04-25 11:51:03 +02:00
3673d0ff5c OS X: Only add -install_name after installation. 2012-03-21 21:28:32 +01:00
5ba5720278 Update URL in copyright. 2012-03-21 13:13:25 +01:00
c0e86bd270 Update copyright. 2012-03-21 13:13:25 +01:00
c7615089f4 Use -install_name on OS X for shared libs. 2012-03-21 13:13:25 +01:00
6fd067b52d Use .bundle instead of .impl. 2012-03-21 13:13:19 +01:00
af2f9d8e47 Fix forgotten variable rename in buildsys.m4. 2011-09-15 13:18:05 +02:00
934052397c Prevent a possible syntax error when not using shared libs. 2011-01-17 17:08:29 +01:00
0e749cf744 Get rid of tput warnings if capability is unavailable. 2010-12-27 00:52:31 +01:00
ec588cb00a It seems there are very different versions of tput. Handle both. 2010-09-16 03:04:43 +02:00
4cc08fb4de Use tput for colour output, if available. 2010-08-11 13:09:27 +02:00
3c0eca6b77 Fix a bug in buildsys.m4 that would cause some shells to fail. 2010-08-10 16:30:28 +02:00
03f94ad79c Use different object files for libs and plugins.
This allows building a shared and static lib at once.
2010-07-25 13:20:55 +02:00
f6125d9bb3 No need for -flat_namespace and -undefined dynamic_lookup is better. 2010-05-08 21:27:43 +02:00
018059ef5c Include the library version in the resulting .dylib. 2010-05-08 16:40:58 +02:00
90b0158747 Check $host_os instead of $host. 2009-12-09 19:26:48 +01:00
e9fd16b96b Rename RPATH_LDFLAGS to LDFLAGS_RPATH. 2009-12-05 11:41:13 +01:00
5dee731d45 Fix wrong output in BUILDSYS_SHARED_LIB. 2009-11-28 15:56:03 +01:00
514d3bf01e Use -undefined suppress only for plugins. 2009-11-15 01:56:42 +01:00
b9fe7e0dfc Don't use -install_name anymore, it's better to use rpath instead. 2009-11-09 20:36:06 +01:00
4430d086ef Add -flat_namespace to library flags on OS X. 2009-07-23 01:03:02 +02:00
27ad37e505 Ignore undefined symbols when linking a library. 2009-07-22 03:21:50 +02:00
581a447e83 Add support for -rpath. 2009-06-03 21:32:40 +02:00
a65decbcb3 More sane flags for Mac OS X / iPhone OS. 2009-06-03 20:56:29 +02:00