mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
targets/egl-static: fix library search order
Use $(MKLIB) -ldflags '-L$(TOP)/$(LIB_DIR)' instead of $(MKLIB) -L$(TOP)/$(LIB_DIR) to make sure the local library path appears before system's.
This commit is contained in:
parent
aa281dd392
commit
24137afb31
1 changed files with 2 additions and 2 deletions
|
|
@ -173,14 +173,14 @@ default: $(OUTPUTS)
|
|||
|
||||
$(OUTPUT_PATH)/egl_gallium.so: $(egl_OBJECTS) $(egl_LIBS)
|
||||
$(MKLIB) -o $(notdir $@) -noprefix -linker '$(CXX)' \
|
||||
-L$(TOP)/$(LIB_DIR) -ldflags '-Wl,--no-undefined $(LDFLAGS)' \
|
||||
-ldflags '-L$(TOP)/$(LIB_DIR) -Wl,--no-undefined $(LDFLAGS)' \
|
||||
-cplusplus -install $(OUTPUT_PATH) $(MKLIB_OPTIONS) \
|
||||
$(egl_OBJECTS) -Wl,--start-group $(egl_LIBS) -Wl,--end-group \
|
||||
$(egl_SYS)
|
||||
|
||||
$(OUTPUT_PATH)/st_GL.so: st_GL.o $(st_GL_LIBS)
|
||||
$(MKLIB) -o $(notdir $@) -noprefix -linker '$(CXX)' \
|
||||
-L$(TOP)/$(LIB_DIR) -ldflags '$(LDFLAGS)' \
|
||||
-ldflags '-L$(TOP)/$(LIB_DIR) $(LDFLAGS)' \
|
||||
-cplusplus -install $(OUTPUT_PATH) $(MKLIB_OPTIONS) \
|
||||
$< -Wl,--start-group $(st_GL_LIBS) -Wl,--end-group \
|
||||
$(st_GL_SYS)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue