Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F116018840
D35691.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
875 B
Referenced Files
None
Subscribers
None
D35691.diff
View Options
diff --git a/lib/csu/tests/dynamic/Makefile b/lib/csu/tests/dynamic/Makefile
--- a/lib/csu/tests/dynamic/Makefile
+++ b/lib/csu/tests/dynamic/Makefile
@@ -2,6 +2,11 @@
.PATH: ${.CURDIR:H}
+.if exists(./Makefile.${MACHINE_ARCH})
+.include "./Makefile.${MACHINE_ARCH}"
+.endif
+
+
.include <src.opts.mk>
MK_PIE= no
diff --git a/lib/csu/tests/dynamic/Makefile.powerpcspe b/lib/csu/tests/dynamic/Makefile.powerpcspe
new file mode 100644
--- /dev/null
+++ b/lib/csu/tests/dynamic/Makefile.powerpcspe
@@ -0,0 +1,11 @@
+# $FreeBSD$
+
+# TODO: investigate and try a better fix on compiler side
+#
+# CSU tests build fails with '/usr/lib/libgcc_s.so: undefined reference to fma'
+# when built with LLVM 14, so '-lm' is being added explicitly here. Only
+# the powerpcspe target is affected and it may be linked to
+# https://reviews.llvm.org/D77558
+
+LDFLAGS+= -lm
+
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 2, 4:47 PM (17 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17908215
Default Alt Text
D35691.diff (875 B)
Attached To
Mode
D35691: csu: test: explicitly add libm as build parameter
Attached
Detach File
Event Timeline
Log In to Comment