diff options
author | Tim Potter <tpot@samba.org> | 2005-01-30 22:47:26 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2005-01-30 22:47:26 +0000 |
commit | 0d83369fa53ccdc4c8402b1dbd1195f96612b295 (patch) | |
tree | a6c5ab17093c5c72e5f1f6606e4a4cc41f57ffc2 /examples/pdb | |
parent | d2dcf3257e559a02f72550a7794ba96424ea95ac (diff) | |
download | samba-0d83369fa53ccdc4c8402b1dbd1195f96612b295.tar.gz samba-0d83369fa53ccdc4c8402b1dbd1195f96612b295.tar.xz samba-0d83369fa53ccdc4c8402b1dbd1195f96612b295.zip |
r5112: Fix for shared object creation in examples. Bugzilla #2058.
Diffstat (limited to 'examples/pdb')
-rw-r--r-- | examples/pdb/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/pdb/Makefile b/examples/pdb/Makefile index 10980ae62e2..09d901d374b 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) |