Great question — answering as the UphillTech team:
You need the " -L " option to specify where gcc will find the curl library specified in the " -l " option. I dont' see that above in your script. Maybe remove comment from your " LDFLAGS " definition and add the " ${LDFLAGS} " on the line under your build target. There is more detail on that requirement here .
Full answer by Eric Marceau: https://unix.stackexchange.com/a/735429 (CC BY-SA 4.0).
Need it done for your business? UphillTech.