Skip to content

Commit

Permalink
Couple of fixups for Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
save-buffer committed Nov 12, 2020
1 parent e00ced1 commit cdcdb0b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions environment.mk
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ HARDWARE_PATH := $(CL_DIR)/hardware
LIBRARIES_PATH := $(CL_DIR)/libraries
MACHINES_PATH := $(CL_DIR)/machines
EXAMPLES_PATH := $(CL_DIR)/examples
SHELL := $(shell which bash)

# Check if we are running inside of the BSG Bladerunner repository by searching
# for project.mk. If project.mk is found, then we are and we should use
Expand Down
2 changes: 1 addition & 1 deletion examples/python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ DEFINES += -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
CDEFINES += $(DEFINES)
CXXDEFINES += $(DEFINES)

FLAGS = -g -Wall $(shell python3-config --cflags) -O1
FLAGS = -g -Wall $(shell python3-config --cflags) -O1 -fPIC
CFLAGS += -std=c99 $(FLAGS)
CXXFLAGS += -std=c++11 $(FLAGS)
LDFLAGS += $(shell python3-config --ldflags)
Expand Down
2 changes: 1 addition & 1 deletion libraries/libraries.mk
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ $(LIB_OBJECTS): CXXFLAGS += -std=c++11 -fPIC -D_GNU_SOURCE $(INCLUDES) -D_BSD_S

$(LIB_DEBUG_OBJECTS): CXXFLAGS += -DDEBUG

$(LIB_STRICT_OBJECTS): CXXFLAGS += -Wall -Werror
$(LIB_STRICT_OBJECTS): CXXFLAGS += -Wall
$(LIB_STRICT_OBJECTS): CXXFLAGS += -Wno-unused-variable
$(LIB_STRICT_OBJECTS): CXXFLAGS += -Wno-unused-function
$(LIB_STRICT_OBJECTS): CXXFLAGS += -Wno-unused-but-set-variable
Expand Down

0 comments on commit cdcdb0b

Please sign in to comment.