Index: /branches/eam_branches/ipp-20120601/psLib/m4/ipp_stdopts.m4
===================================================================
--- /branches/eam_branches/ipp-20120601/psLib/m4/ipp_stdopts.m4	(revision 33996)
+++ /branches/eam_branches/ipp-20120601/psLib/m4/ipp_stdopts.m4	(revision 33997)
@@ -1,2 +1,5 @@
+
+    dnl this is currently written to override an user-defined CFLAGS, is that OK?
+    dnl this is currently written to override an user-defined LDFLAGS, is that OK?
 
 AC_DEFUN([IPP_STDCFLAGS],
@@ -12,5 +15,15 @@
       ]
     )
+    AC_ARG_ENABLE(no-as-needed, [AS_HELP_STRING(--enable-no-as-needed, prevent as-needed option sometimes supplied to gcc such as Ubuntu after 11.11)],
+      [AC_MSG_RESULT(compile optimization enabled) 
+      	if test x"${LDFLAGS}" == x; then
+          LDFLAGS="${LDFLAGS=} -Wl,--no-as-needed"
+	else
+          LDFLAGS="-Wl,--no-as-needed"
+	fi
+      ]
+    )
 ])
+dnl
 
 AC_DEFUN([IPP_STDOPTS],
