Relocation R_X86_64_32S against `.rodata' … While compiling on 64-bit platform

前端 未结 6 1651
轮回少年
轮回少年 2020-12-28 14:36

So I\'ve been coding something on 32-bit and yesterday I needed to build a dll and I had a couple of problems with that. Anyway I solved them here.

Unfortunately eve

6条回答
  •  孤城傲影
    2020-12-28 14:52

    this work as a charm. for who not know yet this easy used

    an open file called Makefile.am or Makefile. Just up to your config.

    look the code at this _a_CXXFLAGS = or just CXXFLAGS =

    add after that files -shared -fPIC

    this example

    before

    crypto_libmubdi_crypto_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIC_FLAGS) $(CXXFLAGS_COMMON) $(CFLAGS_PERSONAL) $(CADD)

    after

    crypto_libmubdi_crypto_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIC_FLAGS) $(CXXFLAGS_COMMON) $(CFLAGS_PERSONAL) $(CADD) -shared -fPIC

    these bugs cause we not put shared for the files or need -fPIC strings/tags.

    Note: I experience on to build my blockchain. and this cause added this crypto/sph_sha2big.c

提交回复
热议问题