]> The Tcpdump Group git mirrors - tcpdump/commitdiff
With .devel, add -g3 for MIPS C and DEC C.
authorGuy Harris <[email protected]>
Fri, 18 Oct 2013 00:20:49 +0000 (17:20 -0700)
committerGuy Harris <[email protected]>
Fri, 18 Oct 2013 00:20:49 +0000 (17:20 -0700)
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.

aclocal.m4
configure

index c5006628ca26082ea509b7ec6329c679891ae484..8baf179a32e1fdc6248beac447e9ba47c624b7e8 100644 (file)
@@ -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"
                            ;;
 
                    *)
index 5d2730de420de5a8ab3244fffcf5abd164d279ec..047d64cb45f63f8903b2e69e1d657020e8760909 100755 (executable)
--- a/configure
+++ b/configure
@@ -7764,7 +7764,18 @@ $as_echo "no" >&6; }
                    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"
                            ;;
 
                    *)