Skip to content

Commit

Permalink
Honor compiler/linker flags from the environment
Browse files Browse the repository at this point in the history
Linux distributions set a bunch of flags during build among them are CFLAGS and LDFLAGS. Honor these so that we can build with the requested flags on these systems.
  • Loading branch information
ismail authored Nov 30, 2023
1 parent ba658b0 commit 44b4b46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vmdk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ EXE := $(OUTPUTDIR)/vmdk-convert
PREFIX ?= /usr

CC := gcc
CFLAGS := -W -Wall -O2 -g
LDFLAGS := -g -lz
CFLAGS := -W -Wall -O2 -g $(CFLAGS)
LDFLAGS := -g -lz $(LDFLAGS)

OBJS := $(addprefix $(OUTPUTDIR)/, $(SRC:%.c=%.o))

Expand Down

0 comments on commit 44b4b46

Please sign in to comment.