is it a good idea to overwrite GCC_DEFAULT_VERSION= in Mk/bsd.gcc.mk?

Jeremy Messenger mezz.freebsd at gmail.com
Thu Mar 28 12:54:18 UTC 2013


<snip>
>>     @@ -238 +238 @@
>>     -sys_lib_search_path_spec="/usr/lib "
>>     +sys_lib_search_path_spec="/usr/local/lib/gcc47/gcc/x86_64-portbld-freebsd8.0/4.7.3
>> /usr/local/x86_64-portbld-freebsd8.0/lib /usr/local/lib/gcc47 /lib
>> /usr/lib "
<snip>

Do you know if this part is need too? You can try to patch the CC and
other stuff by tweak in Mk/bsd.gnome.mk example on CC (untest):

------------------------------
ltverhack_PRE_PATCH=	for file in gnome-ltmain.sh gnome-libtool; do \
							if [ -f ${WRKDIR}/$$file ]; then \
								${REINPLACE_CMD} -e \
									'/freebsd-elf)/,/;;/ s|major="\.$$current"|${ltverhack_LIB_VERSION}|; \
									 /freebsd-elf)/,/;;/ s|versuffix="\.$$current"|versuffix="$$major"|;
									 /CC=/s|CC=.*|CC=${CC}|g' \
									${WRKDIR}/$$file; \
							fi; \
						done
------------------------------


-- 
mezz.freebsd at gmail.com - mezz at FreeBSD.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/ - gnome at FreeBSD.org


More information about the freebsd-ports mailing list