IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33997


Ignore:
Timestamp:
Jun 10, 2012, 6:14:21 AM (14 years ago)
Author:
eugene
Message:

add option to add --no-as-needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120601/psLib/m4/ipp_stdopts.m4

    r23793 r33997  
     1
     2    dnl this is currently written to override an user-defined CFLAGS, is that OK?
     3    dnl this is currently written to override an user-defined LDFLAGS, is that OK?
    14
    25AC_DEFUN([IPP_STDCFLAGS],
     
    1215      ]
    1316    )
     17    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)],
     18      [AC_MSG_RESULT(compile optimization enabled)
     19        if test x"${LDFLAGS}" == x; then
     20          LDFLAGS="${LDFLAGS=} -Wl,--no-as-needed"
     21        else
     22          LDFLAGS="-Wl,--no-as-needed"
     23        fi
     24      ]
     25    )
    1426])
     27dnl
    1528
    1629AC_DEFUN([IPP_STDOPTS],
Note: See TracChangeset for help on using the changeset viewer.