summaryrefslogtreecommitdiff
path: root/audio/snd
diff options
context:
space:
mode:
authorDon Lewis <truckman@FreeBSD.org>2007-07-30 23:52:14 +0000
committerDon Lewis <truckman@FreeBSD.org>2007-07-30 23:52:14 +0000
commitf2d252231bc661b761f94716081ef64effc73388 (patch)
tree5c54152cbafa7f0a564e9b8a8f5db317ea3b2a98 /audio/snd
parent- Chase increase of print/pslib shlib version. (diff)
The configure script in this port attempts to detect the presense of
complex math support by compiling a test program containing this statement: val = ccosh(cacosh(1.5) / 100.0); This does not work with GCC 4.2 in -CURRENT because the compiler totally optimizes away the statement, so the lack of these complex functions in the library is not detected. This causes the actual build to fail because the linker is unable to find various complex math functions in the system library. Fix the test by declaring "val" as volatile to prevent the compiler from optimizing away the expression. PR: ports/115028
Diffstat (limited to 'audio/snd')
-rw-r--r--audio/snd/files/patch-configure11
1 files changed, 11 insertions, 0 deletions
diff --git a/audio/snd/files/patch-configure b/audio/snd/files/patch-configure
new file mode 100644
index 000000000000..c995cd77b755
--- /dev/null
+++ b/audio/snd/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure.orig 2004-11-16 06:47:00.000000000 -0800
++++ configure 2007-07-29 22:04:42.000000000 -0700
+@@ -8335,7 +8335,7 @@
+ int
+ main ()
+ {
+- _Complex double val;
++ volatile _Complex double val;
+ val = ccosh(cacosh(1.5) / 100.0)
+
+ ;