Skip to content

Commit

Permalink
build: Make the generated lib is position independent
Browse files Browse the repository at this point in the history
Make so it is linkable to the rust bindings.
  • Loading branch information
lu-zero committed Jan 14, 2017
1 parent 1368780 commit a5ba231
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ libmfx_la_LDFLAGS = -no-undefined -static-libgcc -static-libstdc++
libmfx_la_LDFLAGS += -version-info $(MFX_LT_CURRENT):$(MFX_LT_REVISION):$(MFX_LT_AGE)
libmfx_la_LIBADD = $(DLLIB) $(LIBVA_DRM_LIBS) $(LIBVA_X11_LIBS)
libmfx_la_CPPFLAGS = $(LIBVA_DRM_CFLAGS) $(LIBVA_X11_CFLAGS) $(AM_CPPFLAGS)
libmfx_la_CXXFLAGS = $(AM_CXXFLAGS) -fPIC
libmfx_la_CFLAGS = $(AM_CFLAGS) -fPIC

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libmfx.pc
Expand Down

0 comments on commit a5ba231

Please sign in to comment.