dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

41 Commits

Author SHA1 Message Date
russell 53b8b89994 Merged revisions 279953 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r279953 | russell | 2010-07-27 16:16:05 -0500 (Tue, 27 Jul 2010) | 5 lines
  
  Add --enable-coverage option to configure script.
  
  This option enables the proper compiler flags for tracking code coverage, which
  is useful along side automated testing.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@279954 f38db490-d61c-443f-a65b-d21fe96a405b
2010-07-27 21:16:39 +00:00
russell dbc8563f35 Ensure CONFIG_FLAGS makes it into the build rules when doing out of tree builds.
(closes issue #16685)
Reported by: pprindeville


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@269008 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-08 15:41:23 +00:00
tilghman b4dd78e0b6 Merged revisions 262321 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r262321 | tilghman | 2010-05-11 12:22:07 -0500 (Tue, 11 May 2010) | 2 lines
  
  Fix issue #17302 a slightly different way (mad props to Qwell)
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@262330 f38db490-d61c-443f-a65b-d21fe96a405b
2010-05-11 17:23:51 +00:00
tilghman f8fd696cc5 Merged revisions 262151 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r262151 | tilghman | 2010-05-10 11:34:21 -0500 (Mon, 10 May 2010) | 10 lines
  
  Allow compilation on Mac OS X 10.4 (Tiger)
  
  (closes issue #17297)
   Reported by: jcovert
   Patches: 
         20100506__issue17297.diff.txt uploaded by tilghman (license 14)
  
  (closes issue #17302)
   Reported by: jcovert
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@262152 f38db490-d61c-443f-a65b-d21fe96a405b
2010-05-10 16:36:25 +00:00
kpfleming c39bfddbfd Ensure that linker version scripts (used for symbol export control) always exist.
Using wildcard matching in the Makefile is not adequate to determine whether
an export file should exist for a module or not, so instead we'll just
create one if the module needs one, or copy the default one if it does not.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@256428 f38db490-d61c-443f-a65b-d21fe96a405b
2010-04-08 16:35:10 +00:00
kpfleming a321328986 Allow symbol export filtering to work properly on platforms that have symbol prefixes.
Some platforms prefix externally-visible symbols in object files generated
from C sources (most commonly, '_' is the prefix). On these platforms,
the existing symbol export filtering process ends up suppressing all the symbols
that are supposed to be left visible. This patch allows the prefix string
to be supplied to the top-level Makefile in the LINKER_SYMBOL_PREFIX variable,
and then generates the linker scripts as required to include the prefix
supplied.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@255906 f38db490-d61c-443f-a65b-d21fe96a405b
2010-04-02 18:57:58 +00:00
tilghman 7f3494f4bf Build system modifications to ensure that Asterisk properly builds on Mac OS X 10.6.
(closes issue #16997)
 Reported by: jquinn
 Patches: 
       20100309__issue16997__2.diff.txt uploaded by tilghman (license 14)
 Tested by: tilghman, russell


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@251475 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-09 20:30:03 +00:00
tilghman 88d3071de9 Export dynamic (weak-linked) symbols correctly.
(closes issue #15193)
 Reported by: eliel
 Patches: 
       20091111__issue15193.diff.txt uploaded by tilghman (license 14)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@231439 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-30 16:53:10 +00:00
seanbright 258daab226 Merged revisions 220717 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r220717 | seanbright | 2009-09-28 15:09:25 -0400 (Mon, 28 Sep 2009) | 3 lines
  
  When selecting DONT_OPTIMIZE in menuselect, explicitly pass -O0 to the compiler
  so we override any default optimization levels for a particular install.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@220721 f38db490-d61c-443f-a65b-d21fe96a405b
2009-09-28 19:11:20 +00:00
kpfleming 3dbaf0de9a Merged revisions 207647 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r207647 | kpfleming | 2009-07-21 08:04:44 -0500 (Tue, 21 Jul 2009) | 12 lines
  
  Ensure that user-provided CFLAGS and LDFLAGS are honored.
  
  This commit changes the build system so that user-provided flags (in ASTCFLAGS
  and ASTLDFLAGS) are supplied to the compiler/linker *after* all flags provided
  by the build system itself, so that the user can effectively override the
  build system's flags if desired. In addition, ASTCFLAGS and ASTLDFLAGS can now
  be provided *either* in the environment before running 'make', or as variable
  assignments on the 'make' command line. As a result, the use of COPTS and LDOPTS
  is no longer necessary, so they are no longer documented, but are still supported
  so as not to break existing build systems that supply them when building Asterisk.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@207680 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-21 13:28:04 +00:00
kpfleming fffa63d2e8 Remove Makefile rules for bison and flex sources
We never, ever want these files to processed automatically, because we store the output files in Subversion and users should never need to rebuild them.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@190861 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-28 14:12:09 +00:00
kpfleming 870bfecfe6 Merged revisions 182808 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r182808 | kpfleming | 2009-03-17 20:55:22 -0500 (Tue, 17 Mar 2009) | 5 lines
  
  Improve the build system to *properly* remove unnecessary symbols from the runtime global namespace. Along the way, change the prefixes on some internal-only API calls to use a common prefix.
  
  With these changes, for a module to export symbols into the global namespace, it must have *both* the AST_MODFLAG_GLOBAL_SYMBOLS flag and a linker script that allows the linker to leave the symbols exposed in the module's .so file (see res_odbc.exports for an example).
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@182826 f38db490-d61c-443f-a65b-d21fe96a405b
2009-03-18 02:21:23 +00:00
kpfleming e2574a3f92 Merged revisions 159476 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r159476 | kpfleming | 2008-11-26 12:36:24 -0600 (Wed, 26 Nov 2008) | 7 lines
  
  simplify (and slightly bug-fix) the recent developer-oriented COMPILE_DOUBLE mode
  
  ensure that 'make clean' removes dependency files for .i files that are created in COMPILE_DOUBLE mode
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159534 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-26 19:08:56 +00:00
kpfleming 89ca122df3 Merged revisions 157859 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r157859 | kpfleming | 2008-11-19 15:34:47 -0600 (Wed, 19 Nov 2008) | 7 lines
  
  the gcc optimizer frequently finds broken code (use of uninitalized variables, unreachable code, etc.), which is good. however, developers usually compile with the optimizer turned off, because if they need to debug the resulting code, optimized code makes that process very difficult. this means that we get code changes committed that weren't adequately checked over for these sorts of problems.
  
  with this build system change, if (and only if) --enable-dev-mode was used and DONT_OPTIMIZE is turned on, when a source file is compiled it will actually be preprocessed (into a .i or .ii file), then compiled once with optimization (with the result sent to /dev/null) and again without optimization (but only if the first compile succeeded, of course).
  
  while making these changes, i did some cleanup work in Makefile.rules to move commonly-used combinations of flag variables into their own variables, to make the file easier to read and maintain
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157974 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-20 00:08:12 +00:00
kpfleming bf74907f91 ensure that if a .i file (preprocessed source) is present, the .o file is made from it, not from the .c file (this only works because GNU makes respects the order the rules are defined)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157167 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-15 19:51:29 +00:00
kpfleming 296092ed22 Merged revisions 157162-157163 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r157162 | kpfleming | 2008-11-15 20:24:24 +0100 (Sat, 15 Nov 2008) | 1 line
  
  dist-clean should remove dependency information files as well
........
  r157163 | kpfleming | 2008-11-15 20:31:03 +0100 (Sat, 15 Nov 2008) | 1 line
  
  when an individual directory dist-clean is run, run clean in that directory first, and when running top-level dist-clean, do not run subdirectory clean operations twice
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157164 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-15 19:45:19 +00:00
kpfleming b6f5c3e5d6 Merged revisions 114875 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114875 | kpfleming | 2008-04-30 07:14:07 -0500 (Wed, 30 Apr 2008) | 2 lines

pay attention to *all* header files for dependency tracking, not just the local ones (inspired by r578 of asterisk-addons by tilghman)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114876 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-30 12:15:43 +00:00
kpfleming f553514787 Merged revisions 107713 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r107713 | kpfleming | 2008-03-11 15:48:58 -0500 (Tue, 11 Mar 2008) | 2 lines

get chan_vpb to build properly in dev mode

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@107715 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-11 20:50:57 +00:00
rizzo a1bcb3dd4e as discussed some time ago on the -dev list, create embedde object
with a .eo suffix even if they are coming from .cc sources.
This simplifies the handling in the build scripts.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89387 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-17 17:27:26 +00:00
rizzo 3957f706bb put back default optimization to -O6 (previously changed by mistake)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89334 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16 20:15:21 +00:00
rizzo 883346d64a Start untangling header inclusion in a way that does not affect
build times - tested, there is no measureable difference before and
after this commit.

In this change:

use asterisk/compat.h to include a small set of system headers:
inttypes.h, unistd.h, stddef.h, stddint.h, sys/types.h, stdarg.h,
stdlib.h, alloca.h, stdio.h

Where available, the inclusion is conditional on HAVE_FOO_H as determined
by autoconf.

Normally, source files should not include any of the above system headers,
and instead use either "asterisk.h" or "asterisk/compat.h" which does it
better. 

For the time being I have left alone second-level directories
(main/db1-ast, etc.).



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89333 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16 20:04:58 +00:00
kpfleming a67b783299 use a variable name that actually indicates what it is for
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88584 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 17:00:07 +00:00
rizzo 6e1338853c Put extra compiler flags into a variable so they are not repeated
too many times.
On passing, add some comments and fix indentation a bit.

On passing, i suspect that the following pattern is wrong

	%.eoo: %.o

but in case it will be fixed in a later commit.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88553 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-05 16:41:39 +00:00
russell 0ed805dce6 Merged revisions 84957 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r84957 | russell | 2007-10-07 22:28:34 -0500 (Sun, 07 Oct 2007) | 6 lines

Enable file dependency tracking for _all_ builds, and not just for builds with
dev-mode enabled.  I have seen enough problems caused by this that I don't think
it's worth keeping.  I want to continue to encourage anybody that is interested
to continue to run Asterisk from svn.  Furthermore, I do not want their systems
to break when we change a structure definition in a header file.  :)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84958 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-08 03:29:38 +00:00
qwell d8dcdb0740 Merged revisions 84291 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r84291 | qwell | 2007-10-01 16:52:45 -0500 (Mon, 01 Oct 2007) | 6 lines

Add dist-clean support for subdirs.

Change h323 to only remove the Makefile on a dist-clean, rather than a clean.

This fixes a bug I found with trying to run make after a make clean

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84300 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-01 21:54:41 +00:00
kpfleming ac1f0d5427 give embedded modules a helping hand by backing up and restoring their global variables when they are loaded and unloaded
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@56092 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-22 02:36:00 +00:00
russell b11c258ff3 Merged revisions 50994 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r50994 | russell | 2007-01-15 17:49:48 -0600 (Mon, 15 Jan 2007) | 2 lines

Filter out a few CFLAGS that are not valid CXXFLAGS.

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@50995 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-15 23:51:04 +00:00
kpfleming a5d83fb31d Merged revisions 50867 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r50867 | kpfleming | 2007-01-15 09:03:06 -0600 (Mon, 15 Jan 2007) | 2 lines

use the ACX_PTHREAD macro from the Autoconf macro archive for setting up compiler pthreads support... should improve portability to platforms with unusual pthreads requirements

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@50869 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-15 15:08:45 +00:00
kpfleming 43352cadc9 Merged revisions 49282 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49282 | kpfleming | 2007-01-02 21:21:25 -0600 (Tue, 02 Jan 2007) | 2 lines

various Makefile improvements to get chan_vpb (and any other C++ modules) to build properly

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49283 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-03 03:28:12 +00:00
kpfleming 7fdeb17c60 Merged revisions 48525 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48525 | kpfleming | 2006-12-16 15:14:34 -0600 (Sat, 16 Dec 2006) | 2 lines

simplify dependency tracking system, using the compiler's built-in method for generating them, and only doing dependency tracking if developer mode is enabled via the configure script

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48527 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-16 21:24:52 +00:00
kpfleming a8442c9b22 Merged revisions 44055 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r44055 | kpfleming | 2006-09-29 17:47:40 -0500 (Fri, 29 Sep 2006) | 2 lines

fix a few build system bugs, and convert Makefiles to be compatible with GNU make 3.80

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44056 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-29 22:48:43 +00:00
kpfleming 170dae49be Merged revisions 43996-43997,44008,44011-44012 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r43996 | kpfleming | 2006-09-29 11:47:05 -0500 (Fri, 29 Sep 2006) | 2 lines

another cross-compile fix

........
r43997 | kpfleming | 2006-09-29 11:52:27 -0500 (Fri, 29 Sep 2006) | 2 lines

support --without-curl in configure script

........
r44008 | kpfleming | 2006-09-29 13:25:49 -0500 (Fri, 29 Sep 2006) | 2 lines

don't abuse CFLAGS and LDFLAGS for build of Asterisk components, because they are also then used for non-Asterisk components (like menuselect); use our own variables instead

........
r44011 | kpfleming | 2006-09-29 13:40:17 -0500 (Fri, 29 Sep 2006) | 2 lines

missed one conversion to ASTCFLAGS

........
r44012 | kpfleming | 2006-09-29 13:49:07 -0500 (Fri, 29 Sep 2006) | 2 lines

yet another place where we were not using the correct CFLAGS by default

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44013 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-29 18:54:21 +00:00
kpfleming 0439aaa76a more makefile tweaks to keep targets from being run when they don't need to be
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42505 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-09 03:27:21 +00:00
kpfleming ac3db825c1 oops... no pattern rules for bison/flex
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40724 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-21 02:26:51 +00:00
kpfleming 8b0c007ad9 merge new_loader_completion branch, including (at least):
- restructured build tree and makefiles to eliminate recursion problems
  - support for embedded modules
  - support for static builds
  - simpler cross-compilation support
  - simpler module/loader interface (no exported symbols)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40722 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-21 02:11:39 +00:00
rizzo 04512adb49 use a couple of variables to remove duplicate definitions
of the various rules for the NOISY/!NOISY cases.

Approved by: kevin



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37744 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-16 22:24:39 +00:00
rizzo 792bd16a38 typo LDFAGS -> LDFLLAGS
detected by: noisy build on FreeBSD



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37719 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-16 13:01:48 +00:00
kpfleming 661a4f572c use LDFLAGS and LIBS properly, and allow dependencies to provide LDFLAGS if needed (although none do today)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37653 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-15 16:40:05 +00:00
kpfleming 6fd4ad8a66 add missing file
ignore .oo files from C++ modules


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37274 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-06 23:20:14 +00:00
kpfleming 84cc5e8bd0 move rules file to prepare for generic rules file
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37222 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-06 21:04:28 +00:00
kpfleming a6fce734b8 commit missing file
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35854 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-24 23:26:19 +00:00