Use hidden visibility by default

This commit is contained in:
Hongli Lai (Phusion) 2012-10-04 18:37:58 +02:00
parent 7644ea4fe9
commit 2fa74f6026
2 changed files with 2 additions and 1 deletions

View file

@ -1,2 +1,3 @@
require 'mkmf'
$CFLAGS << " -fvisibility=hidden"
create_makefile('digest/sha3')

View file

@ -119,7 +119,7 @@ rb_sha3_singleton_digest(int argc, VALUE *argv, VALUE klass) {
}
}
void
void __attribute__((visibility("default")))
Init_sha3() {
mDigest = rb_define_module("Digest");
cSHA3 = rb_define_class_under(mDigest, "SHA3", rb_cObject);