Use hidden visibility by default
This commit is contained in:
parent
7644ea4fe9
commit
2fa74f6026
2 changed files with 2 additions and 1 deletions
|
@ -1,2 +1,3 @@
|
||||||
require 'mkmf'
|
require 'mkmf'
|
||||||
|
$CFLAGS << " -fvisibility=hidden"
|
||||||
create_makefile('digest/sha3')
|
create_makefile('digest/sha3')
|
||||||
|
|
|
@ -119,7 +119,7 @@ rb_sha3_singleton_digest(int argc, VALUE *argv, VALUE klass) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void __attribute__((visibility("default")))
|
||||||
Init_sha3() {
|
Init_sha3() {
|
||||||
mDigest = rb_define_module("Digest");
|
mDigest = rb_define_module("Digest");
|
||||||
cSHA3 = rb_define_class_under(mDigest, "SHA3", rb_cObject);
|
cSHA3 = rb_define_class_under(mDigest, "SHA3", rb_cObject);
|
||||||
|
|
Loading…
Reference in a new issue