Skip to content

Only link -lintl on MinGW#439

Open
rjd15372 wants to merge 1 commit into
citusdata:mainfrom
rjd15372:fix-linux-build
Open

Only link -lintl on MinGW#439
rjd15372 wants to merge 1 commit into
citusdata:mainfrom
rjd15372:fix-linux-build

Conversation

@rjd15372

Copy link
Copy Markdown

Commit d1f714f ("Add dep to -lintl to compile under mingw64") added -lintl unconditionally to SHLIB_LINK. On glibc-based Linux systems the gettext functions are provided by libc itself and there is no separate libintl.so, so every Linux build now fails at link time with:

    /usr/bin/ld: cannot find -lintl: No such file or directory

Windows builds are served by the dedicated Makefile.win, which already links libintl explicitly, so the PGXS Makefile does not need to carry the flag. Remove it to restore the previous behaviour on all other platforms.

Commit d1f714f ("Add dep to -lintl to compile under mingw64") added
`-lintl` unconditionally to `SHLIB_LINK`. On glibc-based Linux systems the
gettext functions are provided by libc itself and there is no separate
libintl.so, so every Linux build now fails at link time with:

```
    /usr/bin/ld: cannot find -lintl: No such file or directory
```

Windows builds are served by the dedicated `Makefile.win`, which already
links libintl explicitly, so the PGXS `Makefile` does not need to carry
the flag. Remove it to restore the previous behaviour on all other
platforms.

Signed-off-by: Ricardo Dias <ricardo.dias@percona.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant