summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2015-06-18 14:18:03 +0200
committer/dev/humancontroller <devhc@example.com>2017-02-07 17:34:59 +0100
commitbea348d828fee2675edc5cfc9b18ad000a96a6ac (patch)
treec8ae11fc1e9150a097d5f6e2aab4baf099e23942
parent7190d27a586ee1a4be4a550833f5ec91fca5402e (diff)
stop embedding the architecture in the filenames of binaries and libraries; change the library loader appropriately
-rw-r--r--GNUmakefile12
-rw-r--r--src/client/cl_main.c4
-rw-r--r--src/qcommon/files.c2
3 files changed, 9 insertions, 9 deletions
diff --git a/GNUmakefile b/GNUmakefile
index e0460c0f..339b28eb 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -874,11 +874,11 @@ endif
TARGETS =
ifndef FULLBINEXT
- FULLBINEXT=.$(ARCH)$(BINEXT)
+ FULLBINEXT=$(BINEXT)
endif
ifndef SHLIBNAME
- SHLIBNAME=$(ARCH).$(SHLIBEXT)
+ SHLIBNAME=.$(SHLIBEXT)
endif
ifeq ($(USE_INTERNAL_MINIZIP),1)
@@ -898,9 +898,9 @@ ifneq ($(BUILD_CLIENT),0)
CLIENT_CFLAGS += $(MINIZIP_CFLAGS)
CLIENT_LIBS += $(MINIZIP_LIBS)
ifneq ($(USE_RENDERER_DLOPEN),0)
- TARGETS += $(B)/$(OUT)/$(CLIENTBIN)$(FULLBINEXT) $(B)/$(OUT)/renderer_opengl1_$(SHLIBNAME)
+ TARGETS += $(B)/$(OUT)/$(CLIENTBIN)$(FULLBINEXT) $(B)/$(OUT)/renderer_opengl1$(SHLIBNAME)
ifneq ($(BUILD_RENDERER_OPENGL2),0)
- TARGETS += $(B)/$(OUT)/renderer_opengl2_$(SHLIBNAME)
+ TARGETS += $(B)/$(OUT)/renderer_opengl2$(SHLIBNAME)
endif
else
TARGETS += $(B)/$(OUT)/$(CLIENTBIN)$(FULLBINEXT)
@@ -1930,12 +1930,12 @@ $(B)/$(OUT)/$(CLIENTBIN)$(FULLBINEXT): $(Q3OBJ) $(LIBSDLMAIN)
-o $@ $(Q3OBJ) \
$(LIBSDLMAIN) $(CLIENT_LIBS) $(LIBS)
-$(B)/$(OUT)/renderer_opengl1_$(SHLIBNAME): $(Q3ROBJ) $(JPGOBJ)
+$(B)/$(OUT)/renderer_opengl1$(SHLIBNAME): $(Q3ROBJ) $(JPGOBJ)
$(echo_cmd) "LD $@"
$(Q)$(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(Q3ROBJ) $(JPGOBJ) \
$(THREAD_LIBS) $(LIBSDLMAIN) $(RENDERER_LIBS) $(LIBS)
-$(B)/$(OUT)/renderer_opengl2_$(SHLIBNAME): $(Q3R2OBJ) $(Q3R2STRINGOBJ) $(JPGOBJ)
+$(B)/$(OUT)/renderer_opengl2$(SHLIBNAME): $(Q3R2OBJ) $(Q3R2STRINGOBJ) $(JPGOBJ)
$(echo_cmd) "LD $@"
$(Q)$(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(Q3R2OBJ) $(Q3R2STRINGOBJ) $(JPGOBJ) \
$(THREAD_LIBS) $(LIBSDLMAIN) $(RENDERER_LIBS) $(LIBS)
diff --git a/src/client/cl_main.c b/src/client/cl_main.c
index 5e8aa4b5..9f8e4279 100644
--- a/src/client/cl_main.c
+++ b/src/client/cl_main.c
@@ -3271,14 +3271,14 @@ void CL_InitRef( void ) {
#ifdef USE_RENDERER_DLOPEN
cl_renderer = Cvar_Get("cl_renderer", "opengl1", CVAR_ARCHIVE | CVAR_LATCH);
- Com_sprintf(dllName, sizeof(dllName), "renderer_%s_" ARCH_STRING DLL_EXT, cl_renderer->string);
+ Com_sprintf(dllName, sizeof(dllName), "renderer_%s" DLL_EXT, cl_renderer->string);
if(!(rendererLib = Sys_LoadDll(dllName, qfalse)) && strcmp(cl_renderer->string, cl_renderer->resetString))
{
Com_Printf("failed:\n\"%s\"\n", Sys_LibraryError());
Cvar_ForceReset("cl_renderer");
- Com_sprintf(dllName, sizeof(dllName), "renderer_opengl1_" ARCH_STRING DLL_EXT);
+ Com_sprintf(dllName, sizeof(dllName), "renderer_opengl1" DLL_EXT);
rendererLib = Sys_LoadDll(dllName, qfalse);
}
diff --git a/src/qcommon/files.c b/src/qcommon/files.c
index 5ab6e980..856ea285 100644
--- a/src/qcommon/files.c
+++ b/src/qcommon/files.c
@@ -1378,7 +1378,7 @@ int FS_FindVM(void **startSearch, char *found, int foundlen, const char *name, i
Com_Error(ERR_FATAL, "Filesystem call made without initialization");
if(enableDll)
- Com_sprintf(dllName, sizeof(dllName), "%s" ARCH_STRING DLL_EXT, name);
+ Com_sprintf(dllName, sizeof(dllName), "%s" DLL_EXT, name);
Com_sprintf(qvmName, sizeof(qvmName), "vm/%s.qvm", name);