Changeset 092a09c for configure.in


Ignore:
Timestamp:
09/08/14 17:24:41 (6 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
525d09d, ea602cd
Parents:
25110ee
Message:

Ensure math library is included when using DPDK

We have to force a -lm build option after linking against the
DPDK static library, otherwise the "smart" gcc build-chain will
decide we don't need to link against libm.

If this happens, any programs that attempt to link against libtrace
will fail because ceil is undefined.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.in

    r5d8457d r092a09c  
    386386        AC_SUBST([RTE_SDK])
    387387        # Force dpdk library to be statically linked to allow compiler optimisations
    388         LIBTRACE_LIBS="$LIBTRACE_LIBS -Wl,--whole-archive -Wl,-l:libintel_dpdk.a -Wl,--no-whole-archive"
     388        LIBTRACE_LIBS="$LIBTRACE_LIBS -Wl,--whole-archive -Wl,-l:libintel_dpdk.a -Wl,--no-whole-archive -Wl,-lm"
    389389                AC_DEFINE(HAVE_DPDK,1,[conditional for building with DPDK live capture support])
    390390                libtrace_dpdk=true
Note: See TracChangeset for help on using the changeset viewer.