0

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.

speedmancs
  • 339
  • 2
  • 4
  • 12

1 Answers1

1

Have you tried setting CFLAGs, e.g.:

CFLAGS="-fvisibility=hidden" ./configure
Kenneth Hoste
  • 2,816
  • 20
  • 14