Forum Discussion
Altera_Forum
Honored Contributor
10 years agoApparently, Ubuntu/Debian tool-chain passes --as-needed flag to the linker by default.
We should add --no-as-needed flag to ensure correct linking. This is worked for my 64 bit OPENCL SDK 14.0 installation on Ubuntu 14.04 LTS. Change the makefile linking Flag as below: default: AOCL_LINK_CONFIG := $(shell aocl link-config) fixed: AOCL_LINK_CONFIG := -Wl,--no-as-needed $(shell aocl link-config)