Skip to content

Instantly share code, notes, and snippets.

@qpfiffer
Last active August 29, 2015 14:03
Show Gist options
  • Save qpfiffer/30bbd154277796b68245 to your computer and use it in GitHub Desktop.
Save qpfiffer/30bbd154277796b68245 to your computer and use it in GitHub Desktop.
g++ -I. -I./ -I/usr/include/postgresql/9.3/server -I/usr/include/postgresql/internal -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include/tcl8.5 -c -o pg_webrtc.o pg_webrtc.cpp
gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -fPIC -pie -I/usr/include/mit-krb5 -DLINUX_OOM_SCORE_ADJ=0 -fno-omit-frame-pointer -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -fpic -L/usr/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -L/usr/lib/mit-krb5 -L/usr/lib/x86_64-linux-gnu/mit-krb5 -L/usr/lib/x86_64-linux-gnu -Wl,--as-needed -shared -o pg_webrtc.so pg_webrtc.o
/usr/bin/ld: pg_webrtc.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
pg_webrtc.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [pg_webrtc.so] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment