fix lgpr undefined reference while building emake

Reporter: KartikShrivastava  |  Status: open  |  Last Modified: October 13, 2023, 11:30:07 am
OS: Arch linux
Fixes following error encountered while building emake target (make emake). RadialGM build failing on Arch Linux because of this issue.

g++ -std=c++17 -Wall -Wextra -Wpedantic -g -I. -I../../CompilerSource -I../../shared/protos/.eobjs -I../libEGM -I../libEGM -I../../shared  -o ../../emake .eobjs/EnigmaCallbacks.o .eobjs/EnigmaPlugin.o .eobjs/Main.o .eobjs/OptionsParser.o .eobjs/Server.o -g -lboost_program_options -Wl,--no-as-needed -Wl,-rpath,./ -lpthread -ldl -L../../ -lcompileEGMf -lEGM -lProtocols -lENIGMAShared -lgrpc++ -lprotobuf -lyaml-cpp -lpng 
/usr/bin/ld: .eobjs/Server.o: undefined reference to symbol 'gpr_inf_future'
/usr/bin/ld: /usr/lib/ error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [../../ ../../emake] Error 1
make[1]: Leaving directory '/home/kartik/Projects/radialgm-dir/RadialGM/Submodules/enigma-dev/CommandLine/emake'
make: *** [Makefile:51: emake] Error 2

I was going to submit a PR for this fix due to CI error but thank god I remembered that you already submitted one. LGTM @KartikShrivastava.

Thanks for the revisit to this PR @k0T0z !
Please sign in to post comments, or you can view this issue on GitHub.