jgm / jgm/peg-markdown

Failure to compile on x86_64 without -fPIC

Open
#32 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
709
Forks
139
PR merge metrics
No merged PRs in 30d

Description

On Fedora 20 I cannot compile HEAD:

```
/usr/bin/ld: markdown_parser.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
markdown_parser.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [library] Error 1
```

It works fine when I add `-fPIC` to the CFLAGS.
This broke with commit c3564c9c035b35bd9c58607653a518332ee1d0d6. Versions before that commit build fine.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.