Skip to content

Instantly share code, notes, and snippets.

@dstrctrng
Created November 6, 2013 22:58
Show Gist options
  • Save dstrctrng/7345746 to your computer and use it in GitHub Desktop.
Save dstrctrng/7345746 to your computer and use it in GitHub Desktop.
gcc -o conftest -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/openssl -I/opt/br/br-admin/pkg/include/db4 -I/usr/include -I/opt/br/br-admin/pkg/include -I/opt/br/br-admin/pkg/include/db4 -I/usr/include -I/opt/br/br-admin/pkg/include -O2 -Wno-error -pthread -I/opt/br/br-admin/pkg/include/db4 -I/usr/include -I/opt/br/br-admin/pkg/include -fPIC conftest.c -L. -L../.. -L. -L/opt/br/br-admin/pkg/lib -Wl,-R/opt/br/br-admin/pkg/lib -pthread -rdynamic -Wl,-export-dynamic -lssl -lcrypto -Wl,-R -Wl,/opt/br/br-admin/pkg/lib -L/opt/br/br-admin/pkg/lib -lruby193-static -lssl -lcrypto -lpthread -lrt -ldl -lcrypt -lm -lpthread -lrt -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <ruby.h>
4:
5: /*top*/
6: int main(int argc, char **argv)
7: {
8: return 0;
9: }
10: extern int t(void);
11: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_str_set_len; return 0; }
/* end */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment