Hi! Building devel/protobuf on macppc fails with the error: /usr/bin/libtool --tag=CXX --mode=link c++ -std=c++11 -pthread -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall -Wno-sign-compare -O2 -pipe -pthread -o protoc google/protobuf/compiler/main.o libprotobuf.la libprotoc.la -lz libtool: link: c++ -o .libs/protoc -pthread -std=c++11 -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall -Wno-sign-compare -O2 -pipe google/protobuf/compiler/main.o -L.libs -lprotobuf -lz -lprotoc -Wl,-rpath-link,/usr/local/lib .libs/libprotobuf.so.3.0: warning: sprintf() is often misused, please use snprintf() .libs/libprotobuf.so.3.0: undefined reference to `__atomic_fetch_add_8' collect2: error: ld returned 1 exit status
Adding CONFIGURE_ENV += LIBS=-latomic fixes the build. Is it a right thing to add for gcc arches? Or it's powerpc-specific? I haven't seen such tweaks in other ports.