aboutsummaryrefslogtreecommitdiff
path: root/src/makefile_linux
diff options
context:
space:
mode:
Diffstat (limited to 'src/makefile_linux')
-rw-r--r--src/makefile_linux6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/makefile_linux b/src/makefile_linux
index a65bb40..22b9300 100644
--- a/src/makefile_linux
+++ b/src/makefile_linux
@@ -5,8 +5,8 @@ current: all
PDSOURCE?=/usr/local/src/pd/src
PD_INCLUDE = -I. -I$(PDSOURCE)
-PD_LDFLAGS = -export-dynamic -shared
-LIB = -lm
+PD_LDFLAGS = -Wl,--export-dynamic -shared -fPIC
+LIB = -lc -lm
#select either the DBG and OPT compiler flags below:
@@ -44,7 +44,7 @@ clean:
all: $(OBJ)
@echo :: $(OBJ)
- $(LD) $(PD_LDFLAGS) $(LDFLAGS) -o $(TARGET) *.o $(LIB)
+ $(CC) $(PD_LDFLAGS) $(LDFLAGS) -o $(TARGET) *.o $(LIB)
mv $(TARGET) ..
$(OBJ) : %.o : %.c