diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-10-17 17:20:49 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-10-17 17:20:49 -0700 |
commit | d6bfd142e9c106deaf9c0091f8b5d0d89a0674ff (patch) | |
tree | 0b3ff91459770b70b6a29d7b0f6169ac17d10164 /aclocal.m4 | |
parent | 9057862c0279b6781d4b88d57faa05a082bb5342 (diff) | |
download | tcpdump-d6bfd142e9c106deaf9c0091f8b5d0d89a0674ff.tar.gz |
With .devel, add -g3 for MIPS C and DEC C.
Lifted from the libpcap configure script, which adds -g even without
.devel, presumably so that programs linked with libpcap can get
debugging symbols.
Those compilers are for dead OSes (IRIX, Tru64 UNIX); we should probably
do whatever voodoo is needed to get Sun^WOracle C, IBM's C compiler for
AIX, and HP C to build optimized with debug symbols.
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -940,6 +940,7 @@ dnl dnl If the file .devel exists: dnl Add some warning flags if the compiler supports them dnl If an os prototype include exists, symlink os-proto.h to it +dnl Add -g flags, as appropriate, for various non-gcc-style compilers dnl dnl usage: dnl @@ -973,7 +974,18 @@ AC_DEFUN(AC_LBL_DEVEL, case "$host_os" in irix6*) - V_CCOPT="$V_CCOPT -n32" + # Presumed to be MIPS C. + V_CCOPT="$V_CCOPT -n32 -g3" + ;; + + irix*) + # Presumed to be MIPS C. + V_CCOPT="$V_CCOPT -g3" + ;; + + osf*) + # Presumed to be the DEC C compiler. + V_CCOPT="$V_CCOPT -g3" ;; *) |