Monday, March 5, 2012

[nslu2-linux] smartmontools package fix to work around g++ 4.2 bug on arm

 

Finally - I found a way to subscribe.

Here is a patch to work around a g++ bug on arm processors.
It avoids a sigsegv when smartctl initializes a device object.
I tested it on a qnap ts419pii.
Details can be found here:
https://sourceforge.net/apps/trac/smartmontools/ticket/219

$ svn diff
Index: make/smartmontools.mk
===================================================================
--- make/smartmontools.mk (Revision 12720)
+++ make/smartmontools.mk (Arbeitskopie)
@@ -45,7 +45,7 @@
# If the compilation of the package requires additional
# compilation or linking flags, then list them here.
#
-SMARTMONTOOLS_CPPFLAGS=
+SMARTMONTOOLS_CPPFLAGS= -fno-toplevel-reorder
SMARTMONTOOLS_LDFLAGS=

#

__._,_.___
Recent Activity:
.

__,_._,___

No comments:

Post a Comment