Skip to content

Commit

Permalink
kodi_18: fix linking error on mips
Browse files Browse the repository at this point in the history
This happens with kodi 18.9 on vuduo2 using bfd or gold:

CMakeError.log
 ...
 [2/2] Linking C executable cmTC_1ac7c
 FAILED: cmTC_1ac7c
 ...
 ld.gold: error: cannot find -lpthreads
 ...
 error: undefined reference to 'pthread_create'
 collect2: error: ld returned 1 exit status
 ninja: build stopped: subcommand failed.

Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
  • Loading branch information
andrea-adami committed Dec 21, 2020
1 parent 9747a53 commit dc55339
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions meta-openpli/recipes-mediacenter/kodi/kodi_18.bb
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ PACKAGECONFIG[pulseaudio] = "-DENABLE_PULSEAUDIO=ON,-DENABLE_PULSEAUDIO=OFF,puls
PACKAGECONFIG[lcms] = ",,lcms"

LDFLAGS += "${TOOLCHAIN_OPTIONS}"
LDFLAGS_append_mips = " -latomic"
LDFLAGS_append_mipsel = " -latomic"
LDFLAGS_append_mips64 = " -latomic"
LDFLAGS_append_mips64el = " -latomic"
LDFLAGS_append_mips = " -latomic -lpthread"
LDFLAGS_append_mipsel = " -latomic -lpthread"
LDFLAGS_append_mips64 = " -latomic -lpthread"
LDFLAGS_append_mips64el = " -latomic -lpthread"

KODI_ARCH = ""
KODI_ARCH_mips = "-DWITH_ARCH=${TARGET_ARCH}"
Expand Down

0 comments on commit dc55339

Please sign in to comment.