summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-12-07 00:32:36 +0000
committerrillig <rillig@pkgsrc.org>2006-12-07 00:32:36 +0000
commit7a051744ac8847891b53af508fd666578236fa01 (patch)
tree205cdf2698f9d2fb19f381bd22404552c3abd2e7 /mk
parent2c3621c2f89f8a5cd6ac90841bc23dd247e92e9c (diff)
downloadpkgsrc-7a051744ac8847891b53af508fd666578236fa01.tar.gz
+ -Wcast-align
Diffstat (limited to 'mk')
-rw-r--r--mk/wrapper/transform-gcc9
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/wrapper/transform-gcc b/mk/wrapper/transform-gcc
index 6d1866bb55e..575d55b53b0 100644
--- a/mk/wrapper/transform-gcc
+++ b/mk/wrapper/transform-gcc
@@ -1,4 +1,4 @@
-# $NetBSD: transform-gcc,v 1.7 2006/12/01 21:10:18 rillig Exp $
+# $NetBSD: transform-gcc,v 1.8 2006/12/07 00:32:36 rillig Exp $
#
# This file handles the transformations needed for gcc that can be done
# looking at only one argument at a time.
@@ -15,6 +15,7 @@ case $arg in
# GCC extensions.
-fPIC |\
+-ggdb |\
-M[DFPT] |\
-O[23s] |\
-pipe |\
@@ -26,6 +27,7 @@ case $arg in
-W |\
-W[cLlS],* |\
-Wall |\
+-Wcast-align |\
-Wcast-qual |\
-Wextra |\
-Werror |\
@@ -46,6 +48,11 @@ case $arg in
-Wswitch |\
-Wwrite-strings ) transform_pass ;;
+# Options specific to g++.
+-fmessage-length=* |\
+-fno-exceptions |\
+-fno-rtti ) transform_pass ;;
+
# Other compiler's options that have corresponding GCC options.
-KPIC |\
-kPIC ) transform_to "-fPIC" ;;