diff options
author | Tim Potter <tpot@samba.org> | 2005-01-30 22:47:26 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:55:15 -0500 |
commit | 2eab58d3fdaef69eef4958f11b4dec730ae18372 (patch) | |
tree | 994410f8d97e154863375a903da8a067fc0fb7ee | |
parent | e7eb70928c216706ec1ed4fe7ca152283c917209 (diff) | |
download | samba-2eab58d3fdaef69eef4958f11b4dec730ae18372.tar.gz samba-2eab58d3fdaef69eef4958f11b4dec730ae18372.tar.bz2 samba-2eab58d3fdaef69eef4958f11b4dec730ae18372.zip |
r5112: Fix for shared object creation in examples. Bugzilla #2058.
(This used to be commit 8e5db6f08ceb969bd2580558031f3737b32f10b1)
-rw-r--r-- | examples/auth/Makefile | 8 | ||||
-rw-r--r-- | examples/pdb/Makefile | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/examples/auth/Makefile b/examples/auth/Makefile index 21d18de075..d6dbc28f40 100644 --- a/examples/auth/Makefile +++ b/examples/auth/Makefile @@ -9,7 +9,7 @@ SAMBA_INCL = ../../source/include UBIQX_SRC = ../../source/ubiqx SMBWR_SRC = ../../source/smbwrapper CFLAGS = -I$(SAMBA_SRC) -I$(SAMBA_INCL) -I$(UBIQX_SRC) -I$(SMBWR_SRC) -Wall -g -AUTH_OBJS = auth_skel.so +AUTH_OBJS = auth_skel.la # Default target @@ -17,8 +17,8 @@ default: $(AUTH_OBJS) # Pattern rules -%.so: %.lo - $(LIBTOOL) --mode=link $(CC) -shared -o $@ $< $(LDFLAGS) +%.la: %.lo + $(LIBTOOL) --mode=link $(CC) -module -o $@ $< $(LDFLAGS) %.lo: %.c $(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) -c $< @@ -28,4 +28,4 @@ default: $(AUTH_OBJS) clean: rm -rf .libs rm -f core *~ *% *.bak \ - $(AUTH_OBJS) $(AUTH_OBJS:.so=.o) $(AUTH_OBJS:.so=.lo) + $(AUTH_OBJS) $(AUTH_OBJS:.la=.o) $(AUTH_OBJS:.la=.lo) diff --git a/examples/pdb/Makefile b/examples/pdb/Makefile index 10980ae62e..09d901d374 100644 --- a/examples/pdb/Makefile +++ b/examples/pdb/Makefile @@ -9,7 +9,7 @@ SAMBA_INCL = ../../source/include UBIQX_SRC = ../../source/ubiqx SMBWR_SRC = ../../source/smbwrapper CFLAGS = -I$(SAMBA_SRC) -I$(SAMBA_INCL) -I$(UBIQX_SRC) -I$(SMBWR_SRC) -Wall -g -I/usr/include/heimdal -fPIC -PDB_OBJS = test.so +PDB_OBJS = test.la # Default target @@ -17,8 +17,8 @@ default: $(PDB_OBJS) # Pattern rules -%.so: %.lo - $(LIBTOOL) --mode=link $(CC) -shared -o $@ $< $(LDFLAGS) +%.la: %.lo + $(LIBTOOL) --mode=link $(CC) -module -o $@ $< $(LDFLAGS) -rpath /usr/lib/samba/pdb/ %.lo: %.c $(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) -c $< @@ -28,4 +28,4 @@ default: $(PDB_OBJS) clean: rm -rf .libs rm -f core *~ *% *.bak \ - $(PDB_OBJS) $(PDB_OBJS:.so=.o) $(PDB_OBJS:.so=.lo) + $(PDB_OBJS) $(PDB_OBJS:.la=.o) $(PDB_OBJS:.la=.lo) |