[Debian-med-packaging] Bug#690830: other suggestion?

Emmanuel Promayon Emmanuel.Promayon at imag.fr
Wed Oct 24 06:59:52 UTC 2012


Thank you very much Konstantinos for your bug report and patch!

I think there is another way to fix the bug that seems (to me, but I am 
a beginner) more architecture independent, and I would like to know if 
anyone has an opinion about it.

Instead of using Konstantinos suggested patch, which consist in modify 
debian/rules, an alternative way would be to add something like this 
directly in the corresponding CMakeLists.txt

include(TestCXXAcceptsFlag)
check_cxx_accepts_flag(-fPIC HAS_FPIC_FLAG)
if(HAS_FPIC_FLAG)
   set_property(TARGET qtpropertybrowser APPEND PROPERTY COMPILE_FLAGS 
-fPIC)
endif()

It checks first if the fPIC flag is accepted by the compiler and then 
adds it. I am not sure it will make a difference for other architectures 
supported by debian.
What do you think?

-- 
Emmanuel Promayon
UJF-Grenoble 1, CNRS, TIMC-IMAG UMR 5525 (équipe GMCAO)
Institut de l'Ingénierie de l'Information de Santé
Faculté de Médecine - 38706 La Tronche cedex - France
Tel. +33/0 456 52 00 03 - Fax. +33/0 456 52 00 55 - B7



More information about the Debian-med-packaging mailing list