speedmancs
speedmancs

Reputation: 369

how to add -fvisibility=hidden in configure

In compiling opencv project, I need to hidden all their interfaces, so I need to add a compile option "-fvisibility=hidden" to configure when generating Makefile for opencv.

The question is, how to add the compile option to configure.

Upvotes: 0

Views: 589

Answers (1)

Kenneth Hoste
Kenneth Hoste

Reputation: 2971

Have you tried setting CFLAGs, e.g.:

CFLAGS="-fvisibility=hidden" ./configure

Upvotes: 1

Related Questions