Linker error updating juce4 project to juce 5

I’m trying to get a juce 4 project that I haven’t looked at in a year or two compiling on juce 5.

I have installed juce 5 and compiled the projucer in GPL mode. It seems to work.

My project seems to compile alright but gives the following error on linking:

Linking MantaJuce - App
/usr/bin/ld: build/intermediate/Debug/include_juce_core_f26d17db.o: undefined reference to symbol ‘dlclose@@GLIBC_2.2.5
//lib/x86_64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:104: recipe for target ‘build/MantaJuce’ failed
make: *** [build/MantaJuce] Error 1

I’m a rather occasional programmer and this is way over my head. Can someone give me a clue?

oops fixed, it was a messed up linker flag not sure how that happened!