mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r5112: Fix for shared object creation in examples. Bugzilla #2058.
This commit is contained in:
parent
3317482020
commit
8e5db6f08c
@ -9,7 +9,7 @@ SAMBA_INCL = ../../source/include
|
|||||||
UBIQX_SRC = ../../source/ubiqx
|
UBIQX_SRC = ../../source/ubiqx
|
||||||
SMBWR_SRC = ../../source/smbwrapper
|
SMBWR_SRC = ../../source/smbwrapper
|
||||||
CFLAGS = -I$(SAMBA_SRC) -I$(SAMBA_INCL) -I$(UBIQX_SRC) -I$(SMBWR_SRC) -Wall -g
|
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
|
# Default target
|
||||||
|
|
||||||
@ -17,8 +17,8 @@ default: $(AUTH_OBJS)
|
|||||||
|
|
||||||
# Pattern rules
|
# Pattern rules
|
||||||
|
|
||||||
%.so: %.lo
|
%.la: %.lo
|
||||||
$(LIBTOOL) --mode=link $(CC) -shared -o $@ $< $(LDFLAGS)
|
$(LIBTOOL) --mode=link $(CC) -module -o $@ $< $(LDFLAGS)
|
||||||
|
|
||||||
%.lo: %.c
|
%.lo: %.c
|
||||||
$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
|
$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
|
||||||
@ -28,4 +28,4 @@ default: $(AUTH_OBJS)
|
|||||||
clean:
|
clean:
|
||||||
rm -rf .libs
|
rm -rf .libs
|
||||||
rm -f core *~ *% *.bak \
|
rm -f core *~ *% *.bak \
|
||||||
$(AUTH_OBJS) $(AUTH_OBJS:.so=.o) $(AUTH_OBJS:.so=.lo)
|
$(AUTH_OBJS) $(AUTH_OBJS:.la=.o) $(AUTH_OBJS:.la=.lo)
|
||||||
|
@ -9,7 +9,7 @@ SAMBA_INCL = ../../source/include
|
|||||||
UBIQX_SRC = ../../source/ubiqx
|
UBIQX_SRC = ../../source/ubiqx
|
||||||
SMBWR_SRC = ../../source/smbwrapper
|
SMBWR_SRC = ../../source/smbwrapper
|
||||||
CFLAGS = -I$(SAMBA_SRC) -I$(SAMBA_INCL) -I$(UBIQX_SRC) -I$(SMBWR_SRC) -Wall -g -I/usr/include/heimdal -fPIC
|
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
|
# Default target
|
||||||
|
|
||||||
@ -17,8 +17,8 @@ default: $(PDB_OBJS)
|
|||||||
|
|
||||||
# Pattern rules
|
# Pattern rules
|
||||||
|
|
||||||
%.so: %.lo
|
%.la: %.lo
|
||||||
$(LIBTOOL) --mode=link $(CC) -shared -o $@ $< $(LDFLAGS)
|
$(LIBTOOL) --mode=link $(CC) -module -o $@ $< $(LDFLAGS) -rpath /usr/lib/samba/pdb/
|
||||||
|
|
||||||
%.lo: %.c
|
%.lo: %.c
|
||||||
$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
|
$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
|
||||||
@ -28,4 +28,4 @@ default: $(PDB_OBJS)
|
|||||||
clean:
|
clean:
|
||||||
rm -rf .libs
|
rm -rf .libs
|
||||||
rm -f core *~ *% *.bak \
|
rm -f core *~ *% *.bak \
|
||||||
$(PDB_OBJS) $(PDB_OBJS:.so=.o) $(PDB_OBJS:.so=.lo)
|
$(PDB_OBJS) $(PDB_OBJS:.la=.o) $(PDB_OBJS:.la=.lo)
|
||||||
|
Loading…
Reference in New Issue
Block a user