Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Makefile: add special PATH when compiling for mariux64
  • Loading branch information
mariux committed Dec 17, 2014
1 parent 50202a9 commit 6078525
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Expand Up @@ -54,6 +54,13 @@ CFLAGS_MXQ_INITIAL_PATH = -DMXQ_INITIAL_PATH=\"$(MXQ_INITIAL_PATH)\"

MYSQL_CONFIG = mysql_config

OS_RELEASE = $(shell ./os-release)

# special defaults for mariux64
ifeq (${OS_RELEASE}, mariux64)
MXQ_INITIAL_PATH := ${MXQ_INITIAL_PATH}:/usr/local/package/bin
endif

CFLAGS_MYSQL += $(shell $(MYSQL_CONFIG) --cflags)
LDLIBS_MYSQL += $(shell $(MYSQL_CONFIG) --libs)

Expand Down
7 changes: 7 additions & 0 deletions os-release
@@ -0,0 +1,7 @@
#!/bin/bash

if [ -e /etc/os-release ] ; then
. /etc/os-release
fi

echo ${ID:=unknown}

0 comments on commit 6078525

Please sign in to comment.