diff options
author | joerg <joerg@pkgsrc.org> | 2011-09-07 23:40:23 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2011-09-07 23:40:23 +0000 |
commit | 323a7c648e2e4675f47d28e1f56a69260486d0d0 (patch) | |
tree | 302ccc059ad60c2e4cc7e9e66ab7a5e9124e640e | |
parent | 3c688edd7ff926c44bac46c04c62a2999407091b (diff) | |
download | pkgsrc-323a7c648e2e4675f47d28e1f56a69260486d0d0.tar.gz |
Unconditionalize use a sane optimizer level. -O20 never existed with GCC
and -O3 is a safe compromise for GCC and Clang (which enables LTO with
-O4).
-rw-r--r-- | databases/libdbi/distinfo | 3 | ||||
-rw-r--r-- | databases/libdbi/patches/patch-configure | 27 |
2 files changed, 29 insertions, 1 deletions
diff --git a/databases/libdbi/distinfo b/databases/libdbi/distinfo index a2439e667c5..499e160f9f0 100644 --- a/databases/libdbi/distinfo +++ b/databases/libdbi/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.1.1.1 2010/03/10 23:55:48 wiz Exp $ +$NetBSD: distinfo,v 1.2 2011/09/07 23:40:23 joerg Exp $ SHA1 (libdbi-0.8.3.tar.gz) = bda606fa6628eed451e492182e1943bd1d824c33 RMD160 (libdbi-0.8.3.tar.gz) = c264a9cf0ef85ccd823273a205a961b6e33773cf Size (libdbi-0.8.3.tar.gz) = 1060714 bytes +SHA1 (patch-configure) = d1faa0a217b8900660afab0dd1c9da04ee9b12c9 diff --git a/databases/libdbi/patches/patch-configure b/databases/libdbi/patches/patch-configure new file mode 100644 index 00000000000..96ac7082ed8 --- /dev/null +++ b/databases/libdbi/patches/patch-configure @@ -0,0 +1,27 @@ +$NetBSD: patch-configure,v 1.1 2011/09/07 23:40:23 joerg Exp $ + +--- configure.orig 2011-09-07 12:32:35.000000000 +0000 ++++ configure +@@ -19257,16 +19257,16 @@ else + case $host in + *-*-linux*) + DEBUG="-g -Wall -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char -std=gnu99" +- CFLAGS="-O20 -ffast-math -D_REENTRANT -fsigned-char -std=gnu99" +- PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char -std=gnu99";; ++ CFLAGS="-O3 -ffast-math -D_REENTRANT -fsigned-char -std=gnu99" ++ PROFILE="-pg -g -O3 -ffast-math -D_REENTRANT -fsigned-char -std=gnu99";; + sparc-sun-*) + DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char -mv8 -std=gnu99" +- CFLAGS="-O20 -ffast-math -D__NO_MATH_INLINES -fsigned-char -mv8 -std=gnu99" +- PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char -mv8 -std=gnu99" ;; ++ CFLAGS="-O3 -ffast-math -D__NO_MATH_INLINES -fsigned-char -mv8 -std=gnu99" ++ PROFILE="-pg -g -O3 -D__NO_MATH_INLINES -fsigned-char -mv8 -std=gnu99" ;; + *) + DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char -std=gnu99" +- CFLAGS="-O20 -D__NO_MATH_INLINES -fsigned-char -std=gnu99" +- PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char -std=gnu99" ;; ++ CFLAGS="-O3 -D__NO_MATH_INLINES -fsigned-char -std=gnu99" ++ PROFILE="-O3 -g -pg -D__NO_MATH_INLINES -fsigned-char -std=gnu99" ;; + esac + fi + |