To make it more clear, I use arch linux, and tried to install this AUR https://aur.archlinux.org/packages/accel-ppp-git/ . The cmake command is cmake \ -DCMAKE_SYSTEM_NAME=Linux \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Debug \ -DMEMDEBUG=TRUE \ -DLOG_FILE=TRUE \ -DLOG_PGSQL=FALSE \ -DSHAPER=FALSE \ -DRADIUS=FALSE \ -DNETSNMP=FALSE \ -DLUA=5.3 \ -DLUA_INCLUDE_DIR="/usr/include" \ "$srcdir/${pkgname%-git}"
cmake issue causing undefined symbol because of libraries not linked