OpenWrt Forum Archive

Topic: Request for gmpxx lib

The content of this topic has been archived on 5 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Would like to build/installdev this.

You'll have to add --enable-cxx to the makefile.  It's important that it goes before --enable-shared otherwise you'll get errors compiling.
While you're at it, you might want to update to the latest sources: https://dev.openwrt.org/ticket/1162

define Build/Configure
    $(call Build/Configure/Default, \
        --enable-cxx --enable-shared \
        --enable-static, \
        CC="$(TARGET_CROSS)gcc" \
    )

You'll need to make further edits if you want the libs included in the ipkg package, the above only compiles them.

The discussion might have continued from here.